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 overloading in c#?

475


What's the difference between a static method and a non static method c#?

496


What are examples of desktop applications?

505


How to exclude a property from xml serialization?

535


Why do we parse in c#?

464






Can we override interface methods in c#?

471


What is gui in c#?

540


Explain use of abstract and sealed classes in c#?

458


What is the difference between abstract class and interface in c#?

488


Can we inherit abstract class in c#?

480


What is object pool in .net?

526


What are Memory foot print of an exe?

502


What are c# collections?

472


What is a delegate in c#?

506


Why is it called c sharp?

513