What is polymorphism and example?



What is polymorphism and example?..

Answer / Archana Yadav

"Polymorphism in Object-Oriented Programming allows a single entity to take on many forms. A classic example of polymorphism is using an array of base class references (pointers) that can store objects of any subclass type. This allows us to treat different objects as if they were of the base class type."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

What is a function in oop?

1 Answers  


How oops is better than procedural?

1 Answers  


can inline function declare in private part of class?

2 Answers  


What is operator overloading? Give Example

11 Answers   CTS, IBM, TCS,


What is static modifier?

1 Answers  


write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.

4 Answers  


What is object in oops?

1 Answers  


how to find no of instances of an object in .NET?

1 Answers   Infosys,


Where You Can Use Interface in your Project

1 Answers   KPIT,


What is polymorphism and why is it important?

1 Answers  


Write a C++ program to conduct an election of a mayor.Declare a class ELECTION With the following specification: Data member: Name 25 character Age Integer symbol 1 character Member functions: To accept data for 20 contestant To accept symbol as voting from 100 voters. To declare the winner and the loser.

1 Answers   Global Academy, Infotech,


What are the data types in oop?

1 Answers  


Categories