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 ?    110 Yes 15 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 ?    55 Yes 4 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 ?    15 Yes 3 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 ?    11 Yes 1 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 ?    0 Yes 0 No

Post New Answer



More C++ General Interview Questions

Describe about storage allocation and scope of global, extern, static, local and register variables?

0 Answers  


What are structures and unions?

0 Answers  


A company pays its salespeople on a commission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a saleperson who sells $5000 worth of merchandise in a week receives $200 plus 9 percent of $5000, or a total of $650. You have been supplied with a list of items sold by each salesperson. The values of these items are as follows: Item Value A 239.99 B 129.75 C 99.95 D 350.89 Write a program that inputs one salesperson's items sold in a week (how many of item A? of item B? etc.) and calculates and displays that salesperson's earnings for that week.

0 Answers  


what is oops

2 Answers  


Difference between pointer to constant vs. Pointer constant

0 Answers  






What is the handle class?

1 Answers  


Explain friend class?

0 Answers  


How do you write a function that can reverse a linked-list?

0 Answers  


How the virtual functions maintain the call up?

0 Answers  


What is a virtual destructor? Explain the use of it?

0 Answers  


What is stream and its types in c++?

0 Answers  


How const functions will be treated by compiler?

3 Answers   Symphony,






Categories