Activity 01
Design Challenge: Interface or Abstract Class?
Groups receive three design scenarios (payment processing system, vehicle simulation, employee payroll system). For each, they decide whether to use an interface, an abstract class, or both, and draw a simple UML-style diagram showing the relationships. Groups present their decisions and face one challenge question from another group.
Differentiate between abstract classes and interfaces in OOP.
Facilitation TipDuring the Design Challenge, circulate and ask students to articulate why they made one choice over the other, focusing on state and inheritance limits.
What to look forProvide students with two short code snippets: one defining an abstract class with some implemented methods and one defining an interface with only method signatures. Ask students to write one sentence explaining the primary difference between the two and one scenario where they would choose the abstract class over the interface.