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.