objective c - In Java is there a name for the object the method is called on? -


when explain code, have write "the object method called on". e.g.

the contains() method checks if input substring present in the string call contains() on.

in objective-c i'd write

the contains() method checks if input substring present in receiver (string).

which makes sense objective-c uses message passing , message has sender , receiver.

the lack of expression java terminology makes descriptions complicated when object in question cannot named explicitly. there exist standard name the object method called on?

verdict: receiver seems express relationship best.

that's called "receiver". see terminology.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -