oh i forgot to include this.. assuming that the myObjectOne is an instance of its class...
darn... the book is a bit confusing... :confused:
Type: Posts; User: chronoz13
oh i forgot to include this.. assuming that the myObjectOne is an instance of its class...
darn... the book is a bit confusing... :confused:
something is confusing here.. the book says the reserved word "this" is used to refer to the receiving object
for example
myObjectOne.doThisMethod();
inside the doThisMethod()
//...
i just want to ask this for some clarification
myObjectOne = myObjectTwo.getTheValue(); // assuming this method returns an object(reference(
in the sample code.. what is myObjectOne? ...