COIS 3040H Lecture 3: WEEK 3 LEC NOTES
Document Summary
*data models are used during analysis in the software lifecycle. Christopher alexander"s philoshophy: first to bring design patterns into software architecture. Design patterns: design patterns are the foundation for all se patterns, based on christophers alexanders patterns. Structural patterns: reduce coupling between two or more classes, encapsulate complex structures. Behavioural patterns: characterize complex control flows that are difficult to follow at runtime, behavioral patterns are concerned with algorithms and the assignment of responsibilities between. Introduce an abstract class to enable future extensions objects. Creational patterns: they abstract the instantiation process. They help make a system independent of how its objects are created, composed and represented: make the system independent from the way its objects are created, composed and represented. Adapter pattern (structural pattern: connects incompatible components. It converts the interface of one component into another interface expected by the other (calling) component. Class adapter: the adapter class inherits from the legacy class and implements an interface from the client.