What is the difference between method and message?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What you know about structures in C++?

578


What is the difference between multiple and multilevel inheritance in c++?

580


what does the following statement mean? int (*a)[4]

602


What is buffer and example?

513


Why is c++ still used?

584






Write about the use of the virtual destructor?

593


Explain how the virtual base class is different from the conventional base classes of the opps.

664


Is there any difference between int [] a and int a [] in c++?

537


Must accepts "Maestro Cards" Tax for bike should be less than 15 Total number of lanes is more than 10 Must provides monthly pass Write a method: boolean isGoodTollBridge(String[] cardsAccepted, String[] tollTax, boolean hasMonthlyPass, int numberOfLanes); String[] cardsAccepted A String array of names of card types accepted for payment of toll tax, it can be null if the toll does not accept any card String[] tollTax A String array of toll tax chart (say “Train : 300”,”BullCart : 10”) boolean hasMonthlyPass This parameter defines whether there is any monthly pass available or not int numberOfLanes This parameter defines the number of lanes for each side

3033


What do you mean by function overriding & function overloading in c++?

592


How do you find out if a linked-list has an end? (I.e. The list is not a cycle)

588


What is low level language in simple words?

545


What is the difference between mutex and binary semaphore?

595


What is the use of cmath in c++?

574


What is meant by entry controlled loop? What all C++ loops are exit controlled?

554