-
Notifications
You must be signed in to change notification settings - Fork 0
pads/DesignPatterns
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
OO Basics --------- Components can be objects, variables, methods etc... 1. Abstraction - group together common components. 2. Inheritance - extend and gain components from a parent. 3. Polymorphism - entities that can take on multiple forms. 4. Encapsulation - restrict access to components that logically sit together. OO Design Principles -------------------- 1. Identify what varies and keep it from what stays the same. 2. Program to interfaces not implementations. 3. Favour composition over inheritance. 4. Aim for loosely coupled objects. OO Patterns ----------- 1. Strategy - interchangeable algorithms. 2. Observer - publish/subscribe model.
About
My learning of design patterns from the Head First book.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published