python coding - composition over inheritance

Опубликовано: 27 Март 2026
на канале: Darren Lefcoe
796
9

the description
---------------
composition over inheritance

Composition over inheritance (or composite reuse principle) in object-oriented programming (OOP) is the principle that classes should favour polymorphic behaviour and code reuse by their composition (by containing instances of other classes that implement the desired functionality) over inheritance from a base or parent class.

website:
https://sites.google.com/view/python-...

stack overflow question:
https://stackoverflow.com/questions/7...

useful links
------------
book:
https://www.amazon.co.uk/dp/B0BHL2XKCR


useful hashtags
---------------
#python
#pythontutorial
#pythonprogramming
#pythonforbeginners
#pythonprojects