vendredi 26 novembre 2021

Is it possible to pass argument to the last method of method calling chain in Java?

say a methods are calling like this with same argument:

method a -> method b -> method c -> method d

Is it possible to pass argument from a to d directly? since method b and c does not do anything with the argument?

Aucun commentaire:

Enregistrer un commentaire