Common Type System
- Primitive Types & Reference Types
- Pass By Value & By Reference
- Pointers & References
- Important OOP concepts you need to understand:
- Modularity (classes, objects)
- Data Encapsulation
Creational Patterns: Patterns concerned with the creation of objects (e.g. Singleton, Abstract Factory).
Structural Patterns: Patterns concerned with the composition of classes or objects (e.g. Composite, Decorator, Proxy).
Behavioural Patterns: Patterns concerned with how classes or objects interact and distribute responsibility (e.g. Observer, State, Strategy).
Below are use case for some design patterns:
Decorator Attach additional responsibilities to an object dynamically. Decorators provide flexible alternatives to subclassing
for extending functionality.
State Allow and object to alter its behaviour when its internal state changes.
Strategy Define a family of algorithms, encapsulate each on, and make them interchangeable. Strategy lets the algorithm vary independently from clients that use it.
Composite Compose objects into tree structures to represent part whole hierarchies. Composite lets clients treat individual objects
and compositions of object a uniformly.
Singleton Ensure a class only has one instance, and provide a global point of access to it.
Proxy Provide a surrogate or placeholder for another object to control access to it.
Observer Define a one-to-many dependency between objects so that when one object changes state, all its dependents are notified
and updated accordingly.
Abstract Factory Provide an interface for creating families of related or dependent objects without specifying their concrete