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 callcontains()
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
Post a Comment