What is polymorphism? Explain with an example.

Answer Posted / amol shevkari

Polymorphism is an concept of OOPS.
Polymorphism allows a client to treat different objects in
the same way even if they were created from different
classes and exhibit different behaviors.
Ex.Traffic Signal->>>>Whenever red signal is glow,the all
different type of braking systems works.i.e.all vehicles of
braking system but there implementation is different and
purpose is same.

Is This Answer Correct ?    130 Yes 44 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction and encapsulation?

573


How Do you Code Composition and Aggregation in C++ ?

24197


Can private class be inherited?

619


How is class defined?

588


When not to use object oriented programming?

572






can we make game by using c

3421


What are the data types in oop?

608


What are benefits of oop?

639


What polymorphism means?

622


What are the benefits of polymorphism?

624


if i have same function with same number of argument but defined in different files. Now i am adding these two files in a third file and calling this function . which will get called and wht decide the precedence?

2757


• What are the desirable attributes for memory managment?

1725


What is meant by multiple inheritance?

738


What is inheritance write a program to show use of inheritance?

611


I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...

1628