What is polymorphism? pl explain practically rather than
theoretical?

Answer Posted / mukesh

Polymorphism - Poly means "many" So it is one name and many forms. In C# we have two types of polymorphism compile time and run time. Compile time polymorphism is achieved through Function Overloading ( Same function but different parameters or signatures) and Run time polymorphism is achieved through function Overriding also called shadowing in VB.net where a child class method overrides the base class function.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the implicit name and type of the parameter that gets passed into the class set method?

503


What is a property c#?

530


How to block a class from being inherited further?

492


Is predicate a functional interface?

499


Is c# the same as d flat?

513






Describe ado.net?

590


What is the difference between integer and double?

478


Is c# strongly typed?

484


What is the difference between double and decimal in c#?

474


What is hashtable in c# with example?

505


Explain the role of the datareader class in ado.net connections?

479


Explain a MSIL ? Why is it appreciated by all developers?

598


Is inheritance possible in c sharp?

647


Can we inherit private class in c#?

504


How do you declare an interface in c#?

496