Chapter 3 Design Patterns - Mero Template Ma
Chapter 3 Design Patterns - Mero Template Ma
Design Pattern
Er. Shiva Ram Dam
Assistant Professor, Pokhara University
Contents:
1. Introduction to Design Patterns
2. Programming Paradigm Vs Design Patterns
3. Importance of Design patterns
4. Classification of Design patterns
5. Software Architecture
• Problem:
– Find the best way to model players and roles so that a player can
change roles or posses multiple roles.
– We want to avoid multiple inheritance
– We cannot allow an instance to change class.