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
Is a dll an assembly?
What is jagged array in c#?
What is a private class in c#?
When should I throw an exception?
What is iformatprovider in c#?
What is the difference between static and private constructor in c#?
How does array sort work?
What are the basic string operations? Explain.
Does console.writeline() stop printing when it reaches a null character within a string?
What is datasource c#?
What is difference between static and constant variable?
What are the types of inheritance in c#?
Why do we need static class in c#?
Can a method be sealed in c#?
What does int parse do in c#?