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
What is the implicit name and type of the parameter that gets passed into the class set method?
What is a property c#?
How to block a class from being inherited further?
Is predicate a functional interface?
Is c# the same as d flat?
Describe ado.net?
What is the difference between integer and double?
Is c# strongly typed?
What is the difference between double and decimal in c#?
What is hashtable in c# with example?
Explain the role of the datareader class in ado.net connections?
Explain a MSIL ? Why is it appreciated by all developers?
Is inheritance possible in c sharp?
Can we inherit private class in c#?
How do you declare an interface in c#?