Skip to main content

#TC201 #Topic2 What is abstraction and Inheritance?

1 min read

Abstraction means that we can have an idea or a concept that is completely separate from any specific instance, these means that an idea can be many objects and those objects have different attributes but at the same time it's the same idea.

Inheritance allows a class to be created based on the definition of another class, the new class inherits all the instance data and methods for the base class, this to reduce data redundancy, one of the biggest benefits of inheritance, is that we can define one base class and then extend that to other classes that inherit these characteristics.


Source: Inheritance / Abstraction