What is polymorphism? Explain with an example.

Answer Posted / sudarsan

polymorphism means is set of different kind of behaviours.
poly means "many" morphism means "form"... example just
imagine a man.. a man behaviour is not same with his wife
and his mother.. he behave differ with his wife.. he may
behave differ with his mother.. so he cannot behave his
mother like his wife...
same function
but
different behavior.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main purpose of inheritance law?

673


What is difference between inheritance and polymorphism?

573


What do you mean by variable?

577


How do you explain polymorphism?

595


Why interface is used?

555






What is oops in programming?

569


What is abstraction and encapsulation?

575


What is stream in oop?

841


What is polymorphism give a real life example?

561


write a program to find 2 power of a 5digit number with out using big int and exponent ?

1897


What language is oop?

597


Why it is called runtime polymorphism?

577


What are the two different types of polymorphism?

672


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

615


What are classes oop?

598