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

Can you inherit from a static class in c#?

485


How do I run managed code in a process?

511


What is an assembly loader?

521


What is the purpose of namespace in c#?

452


Can an int be negative c#?

587






What is predicate builder?

487


Can you instantiate an abstract class c#?

513


Can a abstract class have a constructor?

477


What is the difference between console and windows application?

459


Are attributes inherited c#?

471


Why dictionary is used in c#?

551


What are destructors in C#?

860


What is data adapter in c#?

475


What is a trace and asset? Explain some differences?

706


what is main function of alternate teamplate of datalist?

1651