Too Long; Didn't Read
Inheritance is one of the core concepts of object-oriented programming, that helps us, developers to avoid code duplication. The main idea is that we create a base class, which contains logic, that will be reused by our subclasses. Unlike inheritance, the composition uses a **has-a** relationship. We collect different pieces of functionality together. For example, “***Form***” is an ‘***Element***’ and ‘*Element’ is a ‘**Element*’