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 advantage of singleton class?
Explain the process of Serialization?
what happens if you inherit multiple interfaces and they have conflicting method names?
What is method and function in c#?
Explain concurrency with aop?
what is a constructor? What is a destructor?
What is the size of a decimal?
What is an inheritance ?Give an example in which inheritance is used?
how to print invert pyramid in c#
Can a class or a struct have multiple constructors?
What is foreach loop in c#?
Name the method of servicebase class?
What is difference between array and list in c#?
What is the difference between constants and read-only?
Name some properties of array.