Why You Should Avoid Inheritance

preview_player
Показать описание
In object-oriented programming, inheritance is the mechanism of basing an object or class upon another object or class, retaining similar implementation. Also defined as deriving new classes from existing ones such as super class or base class and then forming them into a hierarchy of classes.

#coding #programming #oop

🌿 My Social Links

📃 Topics Covered

- What is inheritance?
- Why inheritance makes your code worse?
- What is composition?
Рекомендации по теме
Комментарии
Автор

What about not using Python which as you said doesn't even have access modifiers as an example of OOP and Inheritance ?
Maybe you could try some strong typed language before you say Inheritance = bad.

rdtsc