Back to Browse

The Only Time You Should Use Polymorphism

106.3K views
Mar 9, 2024
13:55

The only time you should use subtype polymorphism is when you have behavioural variation in the subtypes. I teach two university courses on object oriented programming and I see this problem a lot. Let me explain. 💚 BUY MY BOOK: https://theobjectorientedway.com RECOMMENDED READING: 🛠️ https://geni.us/k8KhT3 (Refactoring) ⭐️ https://geni.us/zzlx (Dependency Injection: Principles, Practices, and Patterns) 💎 https://geni.us/hNDE (Elegant Objects) 🏛️ https://geni.us/IBhtLnh (Clean Architecture) 🧩 https://geni.us/nlbA6 (Head First: Design Patterns) Watch next: https://youtu.be/TkUhAbbRCAE CONTENTS: 00:00 Thesis 01:16 Example 1 03:28 Example 2 06:25 Example 3 13:26 Summary

Download

1 formats

Video Formats

360pmp439.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

The Only Time You Should Use Polymorphism | NatokHD