Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
In order to be able to make calls "chained":
That is, the increment() method returns the object to which it belongs.
If it didn't return this, then you would have to do this:
x.increment();
x.increment();
x.increment();
x.print();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question