A curated collection of object-oriented design problems, SOLID principles, real-world LLD systems, and full implementations of Creational, Structural, and Behavioral design patterns.
This repository reflects senior-level engineering thinking, clean architecture, and interview-ready solutions.
The goal is simple: build real engineering muscle for scalable system design, exactly how top tech companies expect.
- Encapsulation
- Abstraction
- Inheritance
- Polymorphism
- Interface-driven design
- Composition over inheritance
- Clean modular architecture
- Single Responsibility
- Open–Closed
- Liskov Substitution
- Interface Segregation
- Dependency Inversion
Every principle is demonstrated through code + reasoning, not theory.
- Factory
- Abstract Factory
- Builder
- Prototype
- Singleton
- Adapter
- Composite
- Decorator
- Proxy
- Facade
- Strategy
- Observer
- Template Method
- Iterator
- Command
Each pattern includes real-world problems and clean C++ implementations.
LLD/
├── WEEK04 → Core OOP, inheritance, virtual functions, polymorphism
├── WEEK05 → Strategy, Factory, interface-driven design
├── WEEK06 → Behavioral patterns & architecture thinking
└── WEEK07 → Multi-module system-style LLD designs
Focus:
- Inheritance models
- Dynamic dispatch
- VTables & runtime polymorphism
- Extensible class hierarchies
Includes:
- Strategy Pattern
- Factory Pattern
- Interface-driven programming
- Replace-if-else-with-polymorphism design
Mapped to real examples: payments, notifications, loggers.
Includes:
- Observer-like updates
- Template method flows
- Multi-class orchestration
- Decoupling execution logic
Includes:
- Modular LLD structure
- Dependency flow
- Domain-driven class design
This repo proves mastery in:
✔ Clean OOP architecture
✔ Applying correct design patterns
✔ Writing scalable, maintainable code
✔ Communicating design decisions like a senior engineer
✔ Solving LLD interview problems end-to-end
This is exactly what FAANG-style interviews expect.
- Parking Lot System
- Netflix LLD
- Elevator System
- Ride Sharing System
- Rate Limiter
- Pub/Sub System
- In-memory Database
Ahmar Faraz
Software Engineer
GitHub: https://github.com/iamahmarfaraz
LinkedIn: https://www.linkedin.com/in/iamahmarfaraz/