Рет қаралды 7,830
The classic Design Patterns book introduced the principle of favoring composition over inheritance. In this video, we'll explore what the authors meant by this principle, we'll consider the characteristics that are affected by it, and we'll look at an underrated Kotlin feature that can change our perspective on it!
✨ New to Kotlin? Start your journey here: typealias.com/...
... or pick up the new Leanpub Edition for offline access and more! book.typealias...
🚀 Get the inside scoop on everything I'm working on - join my new email newsletter!
Sign up here: newsletter.typ...
📘 Chapter 13 - Introduction to Class Delegation
typealias.com/...
🎥 Got a question for the livestream?
forms.office.c...
🎞️ Chapters in this video
00:00 Introduction
00:47 Inheritance
04:02 Composition
08:20 Trade-Off Considerations
11:00 Composing like you're Inheriting
12:14 Limitations
13:20 Wrap-up