アイコン

Christopher Okhravi

チャンネル登録者数 16.2万人

2.5万 回視聴 ・ 1847いいね ・ 2024/04/30

Inheritance gives us hierarchical reuse of code AND subtype polymorphism. In this video I argue that we should only ever use it if we want BOTH.

💚 BUY MY BOOK:
https://leanpub.com/the-object-orient...

  / christopherokhravi  

📚 Recommended Reading:
https://geni.us/nlbA6 (Head First: Design Patterns)
https://geni.us/PsXmo (Design Patterns: Elements of Reusable Object-Oriented Software)

Watch next:
   • The Only Time You Should Use Polymorphism  
   • Always Use Interfaces  
   • Depend on Abstractions not Concretions (Fr...  

00:00 Intro
00:21 Only Hierarchical Reuse
03:16 Only Subtype Polymorphism
05:37 Avoid Inheritance?
07:13 Couple To Abstractions
07:32 Example
08:36 Conclusion

コメント

コメントを取得中...

再生方法の変更

動画のデフォルトの再生方法を設定できます。埋め込みで見れるなら埋め込みで見た方が良いですよ。

現在の再生方法: education