Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 466 Bytes

introduction.md

File metadata and controls

7 lines (4 loc) · 466 Bytes

Introduction

Inheritance represents what is known as a relationship. When a Derived class inherits from a Base class, you've established a relationship in which Derived is a specialised version of Base. Either by using single or multiple inheritance, we can inherit the properties from the base class. Inheritance is used because it helps in code reusability.