What is polymorphism? pl explain practically rather than
theoretical?

Answer Posted / mayur teli

Polymorphism is the ability of different classes to provide different implementation of the same public interfaces.

For Example: a Driver object can interact with Car object through a Car public interface. If another object such as Truck object or SportCar object, expose the same interface, the Driver object can interact with them without regard to specific implementation of that interface.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is c# and why it is used for?

500


Which is faster iqueryable or ienumerable?

563


Why var is used in c#?

493


Is string value type c#?

487


What are managed providers?

545






What are namespaces, and how they are used?

563


Explane each and every methods of nterface Queue? Explain About performance issues on retrieving records

582


What is lazy class in c#?

469


What does static mean in c sharp?

570


What is inline function in c#?

509


How to implement singleton design pattern in c#?

469


Compare and contrast between the System.Array.CopyTo() and Clone()?

549


What is the namespace for datatable in c#?

496


How do I stop my console from closing in c#?

458


What is the system namespace?

474