What is polymorphism? Explain with an example.

Answer Posted / lakshmi tulasi

poly means many and morph means faces. means shoeing many faces.

same function or same operator will show/give perform different tasks by passing different arguments.

examples: function overloading
function overriding

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use oops?

594


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

1837


What does and I oop and sksksk mean?

654


2. Give the different notations for the class.\

1594


Why interface is used?

555






Write a c++ program to display pass and fail for three student using static member function

2819


Is data hiding and abstraction same?

570


design a c++ class for the chess board,provide a c++ class definition for such class(only class definition is required)

6155


What are the 4 main oop principles?

685


What is the oops and benefits of oops programming?

556


What is constructor in oop?

591


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1793


What is the example of polymorphism?

562


What are the advantages of polymorphism?

577


what type of questions

1697