September 2021
Intermediate to advanced
504 pages
12h 50m
English
Object-oriented languages use the type system to represent inheritance hierarchies by subtyping classes or interfaces. The use of subtypes is a technique that brings a level of flexibility when we design our programs. Subtyping also goes by the name polymorphism. The word polymorphic implies that something may take on multiple forms. In the context of computer science, it can be defined as follows:
Polymorphism provides a single interface to entities of different types or a single symbol to represent multiple different types.
Functional programming also has a concept called polymorphism, but we are less concerned with classes to bring flexibility to our design. Instead of classic polymorphism, we use ...
Read now
Unlock full access