![]() long inheritance chains were used to add incremental functionality to objects. In the past, this way of modeling was abused which caused bad design. As a textbook example, we can imagine a Shape class (base) and rectangles, circles, etc as derived classes. Other classes can inherit from the base class and get therefore the functionality inherited. It means that you can put some functionality and abstraction in a base class. ![]() It is known that in object-oriented languages inheritance is one of the key features.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |