What is polymorphism ? Explain with examples

Answer Posted / nisha

Polymorphism means one name,many properties.Example of
polymorphism is function overloading whare we can have many
functions with same name but having different properties
like the number of arguments in the function header.

Is This Answer Correct ?    43 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1816


What is encapsulation and abstraction? How are they implemented in C++?

847


What is the real time example of inheritance?

860


i am getting an of the type can not convert int to int *. to overcome this problem what we should do?

2063


What is destructor in oop?

795


How do you use inheritance in unity?

802


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1855


Why is polymorphism important in oop?

818


Why interface is used?

750


How do you answer polymorphism?

794


What are the components of marker interface?

802


Why do we use polymorphism in oops?

788


What is the point of oop?

863


any one please tell me the purpose of operator overloading

2165


What is encapsulation in ict?

814