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 are the return types in c#?
Does c# support #define for defining global constants?
What is difference between private and static constructor?
How can we set class to be inherited, but prevent the method from being over-ridden?
Is datetime value type c#?
What is an Interface in C#?
Are string objects mutable or immutable?
What is marshalling in c#?
What is the default scope of a class in c#?
What is the difference between “dispose” and “finalize” variables in c#?
What do you mean by a windows process in regards to memory allocation?
Explain concurrency with aop?
What is class and object c#?
Which class comes after the SortedList class?
In a C# class we have a SortedList member m_addinProjects
we want to provide an iterator to allow the consumer of
this class access to the items in the collection. Please
provide an iterator method for the AnalyzeAddinsDLL class
below and an example of how it would be used.
namespace AnalyzeAddinsDLL
{
public class AllAddInProjects
{
private SortedList