adspace


How does c# achieve polymorphism?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is expression tree in c#?

998


What is an abstract class c#?

969


Which namespaces are necessary to create a localized application?

1142


How do you inherit a class into other class in c#?

995


Why can't we use a static class instead of singleton?

954


How to assign Null value to Var?

1064