How does c# achieve polymorphism?



How does c# achieve polymorphism?..

Answer / Pankaj Rathi

In C#, polymorphism is achieved primarily through method overriding and interface implementation. Method overriding allows a derived class to provide its own implementation of a method that's already declared in the base class, while interfaces allow multiple classes to share a common set of methods.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Sharp Interview Questions

What is a constructor in c#?

4 Answers  


What?s a satellite assembly?

3 Answers   Visual Soft,


Is it possible to inline assembly or il in c# code?

1 Answers  


Is array a collection c#?

1 Answers  


Does c# support #define for defining global constants?

1 Answers  


What is thread safe in c#?

1 Answers  


What tool we have to use to install assembli in gac folder.

1 Answers  


What is overloading with example?

1 Answers  


Does c# support multiple class inheritance?

1 Answers  


What do u meant by "SBI" of an object?

1 Answers  


To allow an element to be accessed using a unique key which .NET collection class is used ?

1 Answers   Siebel,


You are designing a user control. You created new property called backgroundimage which is of type image. You wanted to disable storing this property in the user’s form. How to achieve this?

1 Answers  


Categories