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 |
What is a function in oop?
How oops is better than procedural?
can inline function declare in private part of class?
What is operator overloading? Give Example
11 Answers CTS, IBM, TCS,
What is static modifier?
write a program in c++ to overload the function add (s1,s2) where s1 and s2 are integers and floating point values.
What is object in oops?
how to find no of instances of an object in .NET?
Where You Can Use Interface in your Project
What is polymorphism and why is it important?
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?