What is the difference between method and message?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are php strings immutable?

556


How a macro differs from a template?

633


Is c++ faster than c?

591


What is the copy-and-swap idiom?

602


What is c++ good for?

581






Do class declarations end with a semicolon?

596


Why Pointers are not used in C++?

619


What are special characters c++?

562


Differentiate between a template class and class template in c++?

624


What is purpose of abstract class?

582


What gives the current position of the put pointer?

553


What is c++ namespace?

708


When should overload new operator on a global basis or a class basis?

608


What is object oriented programming (oop)?

618


If I is an integer variable, which is faster ++i or i++?

586