What is polymorphism explain?



What is polymorphism explain?..

Answer / Jabar Singh

Polymorphism allows objects of different classes to be treated as objects of a common parent class. This means that functions or methods can perform differently depending on the object they are acting upon, and it provides flexibility in code reuse.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More OOPS Interview Questions

Define a class to represent a bank account. Include the following members: Data Members: Name of the Depositor Account Number Type of Account Balance amount in the account Member Functions: To assign the initial values. To deposit an account. To withdraw an amount after checking the balance. Write a C++ main program to display account number, name and balance.

6 Answers  


There are 2 empty jars of 5 and 3 liters capacity. And a river is flowing besides. I want to measure 4 liters of wanter using these 2 jars. How do you do this?

4 Answers  


Why many objects can working together? How objects working togetherM I want to see example code.

2 Answers  


Why do we use class?

1 Answers  


What is a macro? And how is a macro same as a template?

4 Answers  


WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE

2 Answers  


What is constructor overloading in oop?

1 Answers  


What is function overloading and operator overloading?

4 Answers  


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

1 Answers   Accenture,


IN PROGRAMING LANGAUGE A C++ IS PURELY OBJECT ORIENTED OR NOT?

2 Answers  


How to reverse a sentence in c program ex: ram is a good boy answer: boy good a is ram

0 Answers   IBM,


Whats oop mean?

1 Answers  


Categories