Answer Posted / sujith
The above answer is well explained. In technical terms it
can be explained as same function name with different
signature. Signature means only interms of arguments, and
not for return types. The idea is very simple and is a
feature which make the end user comfortable, and as Swetcha
said, it is finally the compiler will decide, which function
to call when, according to the type of data passed to the
function.
eg. int add(int, int)
double add(double, double)
char add(char, char)
but the following is not possible
int add(int, int)
char add(int, int)
Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
What is abstraction with example?
What is the difference between static polymorphism and dynamic polymorphism?
Can we define a class within the interface?
What is encapsulation in simple terms?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
• What are the desirable attributes for memory managment?
design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)
Why do we use encapsulation in oops?
What is meant by multiple inheritance?
How to improve object oriented design skills?
Why polymorphism is used in oops?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
What is polymorphism and why is it important?
Are polymorphisms mutations?
What are the 5 oop principles?