Mark As Completed Discussion

Abstract Classes and Inheritance

Today we will discuss abstract classes and inheritance.

OOP is not just about creating classes and inheriting one class from another. There are several additional concepts and rules related to instantiating objects, overriding methods, and enforcing contracts which are necessary for creating some features a class should provide.

Let's start with abstract classes. An abstract class is a class that is not supposed to be instantiated.