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

How do you determine whether a string represents a numeric value?

0 Answers  


Is c# a keyword?

0 Answers  


5. What properties we used to call stored procedure in C#?

2 Answers   Mphasis,


Explain metadata in c#.

0 Answers  


Explain what are three test cases you should go through in unit testing?

0 Answers  






Method1() { int a=0, b=0, c=0; Monitor.Enter(this) c = 12; b = 3; a = c/b Moniter.Exit(this) } Method1() { int a=0, b=0, c=0; c = 12; b = 3; lock(this){ a = c/b } } Choose correct answer. a. Upon completion, Method1 and Method2 release the lock b. Upon Comletion, Method1 release the lcok and Method2 not. c. Upon Completion, Method2 release the lock and Method1 not. d. Upon Completion, neither Method1 or Method to release the lock.

1 Answers  


When can a derived class override a base class member?

0 Answers  


How to find methods of a assembly file (not using ILDASM)?

0 Answers  


Where do we set the min and max pool size for connection pooling?

0 Answers  


What is type system in c#?

0 Answers  


Explain About sn.exe

0 Answers  


how to access the virtual method without creating the objet for the virtual method?

1 Answers  


Categories