What is the difference between method and message?

Answers were Sorted based on User's Feedback



What is the difference between method and message?..

Answer / smita

Message:
Objects communicate by sending messages to each other. A
message is sent to invoke a method.

Method:
Provides response to a message. It is an implementation of
an operation.

Is This Answer Correct ?    128 Yes 17 No

What is the difference between method and message?..

Answer / dd

Method is a function or procedure that is defined for a
class and typically can access the internal state of an
object of that class to perform some operation. While
message is refer to instruction that is send to object which
will invoke the related method.

Is This Answer Correct ?    61 Yes 6 No

What is the difference between method and message?..

Answer / 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

What is the difference between method and message?..

Answer / rajputvishal

A message is an instruction to perform some operation send by an object to another object which will perform the operation.

A method is the implementation which is executed after receiving the message

Is This Answer Correct ?    14 Yes 2 No

What is the difference between method and message?..

Answer / earvinyuvi

Message:
Objects communicate by sending messages to each other. A
message is sent to invoke a method.

Method:
Provides response to a message. It is an implementation of
an operation.

Is This Answer Correct ?    5 Yes 2 No

Post New Answer

More C++ General Interview Questions

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

0 Answers  


Explain about vectors in c ++?

0 Answers  


What is the return value of the insertion operator?

0 Answers  


How do you sort a sort function in c++ to sort in descending order?

0 Answers  


What is using namespace std in cpp?

0 Answers  






What is a block in c++?

0 Answers  


How does c++ sort work?

0 Answers  


Why we use #include conio h in c++?

0 Answers  


what is the basic concept of c++(object oriented programing)

4 Answers   Wipro,


What is the limitation of cin while taking input for character array?

0 Answers  


Can you explain the term "resource acquisition is initialization?"

1 Answers   Amazon,


How the delete operator differs from the delete[]operator?

0 Answers  


Categories