what is the difference between a method and a message ?
what is the difference between method and a message? is method is same as a function
Collapse
X
-
-
A message is any packet of communication between objects. The objects may be in the same program, or they may be on different systems. It simply doesn't matter.
A method is a block of code attached to an object by some means. It may be implicitly attached by means of a class, or it may be an anonymous closure attached to an arbitrary attribute of the object.Comment
Comment