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
Why hashtable is thread safe in c#?
What are examples of desktop applications?
What is the base class in .net from which all the classes are derived from?
What is a race condition?
How many types of constructors are available in c#?
What is the role of the datareader class in ado.net connections?
What is a static property. Give an example?
In which order the constructor is called for an inherited class?
Is array immutable in c#?
What is the max value of int32 in c#?
Explain the advantage of using system.text.stringbuilder over system.string?
What is strongly typed view?
Define encapsulation?
What is difference between sleep () and wait ()?
Can a class be protected in c#?