What is the difference between method and message?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can I learn c++ without c?

599


Why would you use pointers in c++?

621


How do I start a c++ project?

583


Can java be faster than c++?

664


What is the main purpose of c++?

539






Write about the scope resolution operator?

608


What is meant by forward referencing and when should it be used?

547


What do you mean by ‘void’ return type?

601


Describe the advantage of an external iterator.

611


what is data abstraction in C++?

642


A prime number is a number which is divisible only by itself and 1. Examples of the first few primes are 2, 3, 5, 7, 11. Consider writing a program which can generate prime numbers for you. Your program should read in and set a maximum prime to generate and a minimum number to start with when looking for primes. This program should be able to perform the following tasks: 1. Read the maximum number from user (keyboard input) to look for primes. The program should not return any primes greater than this number. 2. Read the minimum number from user (keyboard input) to look for primes. The program should not return any primes less than this number. 3. Generate and print out every prime number between the maximum prime and minimum number specified by the user.

1740


How is modularity introduced in C++?

763


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

630


What is the latest c++ version?

603


Can I create my own functions in c++?

592