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

write a c++ program to create class student having datamember name,Roll_no,age,and branch intilcization all the member using constructor print the all the details on the screen.

2240


Which is the best c++ compiler?

581


How to get the current position of the file pointer?

546


What is meant by iomanip in c++?

598


What are the benefits of oop in c++?

578






In a function declaration what does extern means?

586


What is the best c++ compiler for windows 10?

574


How are pointers type-cast?

634


What is virtual function? Explain with an example

580


What are the advantages of c++?

585


In the derived class, which data member of the base class are visible?

630


Write about c++ storage classes?

738


What is the function of I/O library in C++ ?

652


Why was c++ created?

536


What are static and dynamic type checking?

602