Slide 1Chapter 8: Interfaces and inner classes ● We learnt a number of mechanisms to abstract concepts and reuse them: – Data abstraction (Encapsulation and Information…
1. Design Patterns 1. Strategy PatternHow to design for flexibility? Strategy Pattern1 2. References• Design Patterns: Elements of ReusableObject-Oriented Software…
Interfaces and Polymorphism Interfaces and Polymorphism 9.1 Using Interfaces for Code Reuse 9.1.1 Defining an Interface 9.1.2 implementing an interface 9.2 Converting between…