What is the difference between method and message?

Answer Posted / scott

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.

Is This Answer Correct ?    18 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is it possible to use a new for the reallocation of pointers ?

601


What are stacks? Give an example where they are useful.

594


Which field is used in c++?

640


What is a storage class? Mention the storage classes in c++.

595


Can we delete this pointer in c++?

679






What is enum class in c++?

710


What is the object serialization?

629


Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

2441


What is the difference between strcpy() and strncpy()?

612


What is a syntax in c++?

609


What do you understand by zombie objects in c++?

622


which one is equivalent to multiplying by 2:Left shifting a number by 1 or Left shifting an unsigned int or char by 1?

724


what is scupper?

1895


Why do we need c++?

599


What are advantages of c++?

564