What is a design pattern, and why do we use design patterns?
Describe Factory Pattern? When to use? Which Compontents? What problems are solved?
Describe Observer Pattern? When to use? Which Compontents? What problems are solved?
-Used when there is a one-to-many relationship between objects, such as when the modification of one object requires its several dependant objects to be notified automatically. An object (named the subject) maintains a list of its dependents (called observers) and notifies them automatically if any state changes, usually by calling one of their methods
Describe Template Method Pattern? When to use? Which Compontents? What problems are solved?
Describe State Pattern? When to use? Which Compontents? What problems are solved?
Describe Strategy Pattern? When to use? Which Compontents? What problems are solved?
Describe Model-View-Controller(MVC)? When to use? Which Compontents? What problems are solved?
Describe Module Pattern? When to use? Which Compontents? What problems are solved?(Ingen verkar förstå???)
Describe Bridge Pattern? When to use? Which Compontents? What problems are solved?
Describe Facade Pattern? When to use? Which Compontents? What problems are solved?
Describe Adapter Pattern? When to use? Which Compontents? What problems are solved?
- Define an interface that describes a protocol (a condition) that other classes must follow to be able to collaborate with the client code ( the code that will use the adapted object). Then one must create an adapter class that implements the client interface while wrapping the service object. The adapter receives calls from the client, via the adapter interface, and translates them into calls to the wrapped service object in a format it can understand