Hands-on practice for this lecture. Work through the exercises and quizzes to reinforce what you've learned.
Exercise 1 of 1
Practice multi-inheritance of behavior. Pick the right interfaces to build specialized machines that satisfy strict office requirements.
Simple Printer
A basic machine that only puts ink on paper.
Select the interfaces needed to satisfy the requirement.
🧩 Interfaces: A class "Can-Do" multiple things by implementing multiple interfaces. This is the key to modular, plug-and-play design.
Practical exercises to master the concepts.
Create Swimmable and Flyable interfaces. Implement both for a Duck class.