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


Please Help Members By Posting Answers For Below Questions

What are the return types in c#?

711


Does c# support #define for defining global constants?

786


What is difference between private and static constructor?

668


How can we set class to be inherited, but prevent the method from being over-ridden?

770


Is datetime value type c#?

634


What is an Interface in C#?

734


Are string objects mutable or immutable?

705


What is marshalling in c#?

649


What is the default scope of a class in c#?

686


What is the difference between “dispose” and “finalize” variables in c#?

697


What do you mean by a windows process in regards to memory allocation?

721


Explain concurrency with aop?

724


What is class and object c#?

662


Which class comes after the SortedList class?

751


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 m_addinProjects; public AllAddInProjects() { m_addinProjects = new SortedList(); } } }

2061