filmov
tv
Composition Is Better Than Inheritance in Python
Показать описание
In this video, I explain the difference between composition vs inheritance, what the design principle "favor composition over inheritance" means in practical terms, and how you can use it to make better software design decisions.
🔖 Chapters:
0:00 Intro
1:11 Explanation of the example
3:57 Technique #1: inheritance
8:30 Problems with the inheritance technique
10:02 Technique #2: composition
18:48 Improvement: turn Commission into an abstract class
20:03 Limitations of this example
21:29 Final thoughts
#arjancodes #softwaredesign #python
The Flaws of Inheritance
Composition Is Better Than Inheritance in Python
Composition Over Inheritance
Only Use Inheritance If You Want Both of These
Composition Vs Inheritance - Why You Should Stop Using Inheritance
Comparing Object Composition Vs. Class Inheritance
Composition over Inheritance Explained by Games! #programming
Composition over Inheritance
Why Your Base Classes Are Secretly Breaking Your Code? #coding #programming #developer
Understanding Composition Over Inheritance
Composition over Inheritance [Object Oriented Programming]
Prime Reacts: The Flaws of Inheritance
Why Favor Object Composition Over Class Inheritance? A Deep Dive
How You Can Easily Make Your Code Simpler in Godot 4
Composition vs. Inheritance with JPA and Hibernate
Programmatic Comparison: Inheritance vs Composition
Inheritance vs Composition in JPA | JPA Buddy
Ep17 - Why Inheritance is bad? OOP Composition vs Inheritance
This principle might be better than inheritance #codingtips
Composition Vs. Inheritance: How To Choose?
Unity Architecture - Composition or Inheritance?
Python OOP Composition Clearly Explained
Composition vs Inheritance Pro Tips
Classes part 23 - Composition (and aggregation) versus Inheritance in C++ | Modern Cpp Series Ep. 60
Комментарии