What are the "under the hood" differences? What are the practical differences?
Is there any difference from a users perspective?
I know you could use def
to define a method, but could you define a message?
What are the "under the hood" differences? What are the practical differences?
Is there any difference from a users perspective?
I know you could use def
to define a method, but could you define a message?
When you send a message to an object, the object will (usually) respond by executing a method with the same name as that message.
You cannot define messages. You just send them.