What is polymorphism? pl explain practically rather than
theoretical?

Answers were Sorted based on User's Feedback



What is polymorphism? pl explain practically rather than theoretical?..

Answer / 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

What is polymorphism? pl explain practically rather than theoretical?..

Answer / umesh shrivastava

In the word Polymorphism here poly means many and morphism
means form ie.one interface having multiple function.
Polymorphism are of two type
1 Static polymorphism:we can use this by implementing
function overloading and oprator overloading.

2 Dynamic Polymorphism:we can user this by implementing
virtual function and abstract classes.

Is This Answer Correct ?    2 Yes 0 No

What is polymorphism? pl explain practically rather than theoretical?..

Answer / mayur teli

Polymorphism is the ability of different classes to provide different implementation of the same public interfaces.

For Example: a Driver object can interact with Car object through a Car public interface. If another object such as Truck object or SportCar object, expose the same interface, the Driver object can interact with them without regard to specific implementation of that interface.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What are native functions?

0 Answers  


How do you declare an interface in c#?

0 Answers  


How do I calculate relative time?

0 Answers  


Can a abstract class have a constructor?

0 Answers  


Can you prevent a class from overriding?

3 Answers  






Explain nullable types in c#?

0 Answers  


What is generic delegate in c#?

0 Answers  


What are async and await?

0 Answers  


What is the use of jit ? Jit (just - in - time) is a compiler which converts msil code to

0 Answers  


What is the main method?

0 Answers  


What is data reader in c#?

0 Answers  


Write a syntax for writing a event delegate.

0 Answers  


Categories