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 are the ways in which a constructors can be called?

1581


what are the realtime excercises in C++?

2333


Can you name some types of inheritance?

639


What is abstract class in oops?

598


What is polymorphism oop?

619






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

24191


What is for loop and its syntax?

596


Why do we use class?

633


What does sksksk mean in text slang?

1532


What does enum stand for?

609


Can abstract class have normal methods?

610


What is multilevel inheritance in oop?

555


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

1650


What is the real time example of encapsulation?

595


What is inheritance in simple words?

625