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

Where do I put dll files?

0 Answers  


Explain the Usage of web.config

0 Answers   Microsoft,


What is the difference between readkey and readline in c#?

0 Answers  


Define satellite Assembly in .NET?

0 Answers   DELL,


What is the difference between struct and class in c#?

3 Answers  


One start and stop button is there and one textbox is there.when you click start button ,it will display 1,2,3......up to infinite in textbox.when you click stop button it will stop.

1 Answers  


Why is c# used?

0 Answers  


Differentiate between method overriding from method overloading with its functionality?

0 Answers   Siebel,


Is c# and .net same?

0 Answers  


Assembly Code. in Rejester AL. How do Contast Replece( or Change): Bit D3 With Bit D4 and Bit D2 With Bit D5 and Bit D1 With Bit D6 and Bit D0 With Bit D7 I am Not Know Very Well Write English.

0 Answers   IBM,


how can your software identify which version of dot net framework install in client pc and install framework accordingly

2 Answers   pspl,


Is a dll an assembly?

0 Answers  


Categories