Home c# Types of polymorphism

Types of polymorphism

Author

Date

Category

What are the types of polymorphism in C #?


Answer 1, authority 100%

Some crap from programming, but okay, let’s go through the points of the article Polymorphism on wikipedia .

  • Ad-hoc polyformism (function overloading, typecasting) – supported, you can create several methods with the same name and different arguments, primitive types can be implicitly cast.

  • Parametric polymorphism (generic programming) – supported, polymorphic (generic) types can be created.

  • Inclusion polymorphism (inheritance) – supported, there are interfaces, class inheritance, single and multiple dispatch. Primitive types are not polymorphic.

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions