14
Polymorphism
Polymorphism is a fundamental concept in programming and is often associated with object-oriented programming (OOP). It allows objects of different classes to be used as objects of a common superclass or interface, providing a consistent interface to interact with these objects regardless of their specific types.
In this chapter, we’re going to cover the following main topics:
- Polymorphism
- Abstract classes
- Sealed classes
Polymorphism
Polymorphism allows a programmer to specialize functionality based on a context; the programming language will use the proper version. There are two main types of polymorphism:
- Compile-time (static) polymorphism: Also known as method overloading or compile-time method dispatch, this type of polymorphism ...
Get Visual Basic Quickstart Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.