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 ? | 6 Yes | 2 No |
Post New Answer View All Answers
What does the linker do?
What is setf in c++?
Which compiler does turbo c++ use?
Explain 'this' pointer and what would happen if a pointer is deleted twice?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
What is the use of 'using' declaration in c++?
What is buffer and example?
Define pointers?
What is the purpose of ios::basefield in the following statement?
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
How do I use arrays in c++?
How can I learn c++ easily?
Write a program for Divide a number with 2 and Print the output ( NOTE: Check for divide by zero error).
What is pure virtual function?
Explain the difference between new() and malloc() in c++?