Skip to content
Chethan Yadav_

$ cd ~/learn/oop

Object-Oriented Programming

Classes, the four pillars, SOLID, and the design patterns interviewers actually ask about.

CS Fundamentals/5 Lessons

All subjects
  1. Lesson 01 · 6 min read

    Classes and Objects

    Classes, objects, constructors, access modifiers, static members, this, object lifecycle and memory, and equality vs identity.

  2. Lesson 02 · 6 min read

    The Four Pillars

    Encapsulation, abstraction, inheritance and polymorphism, with overloading vs overriding, dynamic dispatch and abstract classes vs interfaces.

  3. Lesson 03 · 6 min read

    Advanced OOP

    Composition vs inheritance, association, aggregation and composition, coupling and cohesion, immutability, generics and exception handling in OOP.

  4. Lesson 04 · 6 min read

    SOLID Principles

    The five SOLID design principles with violations and fixes, plus DRY, KISS, YAGNI and the Law of Demeter.

  5. Lesson 05 · 6 min read

    Design Patterns

    The Gang of Four creational, structural and behavioral patterns interviewers ask about most, with code and when to use each.