Search

Lessons (14)

  • What Is Object-Oriented Programming?

    … Use plain functions when you're just transforming data. Languages and OOP Language OOP style --- --- Java, C Everything …

  • OOP Mistakes and Interview Questions

    The most common OOP mistakes (god classes, anemic models, deep hierarchies, getters for everything) and clear answers to …

  • Preparing for Technical Interview Rounds

    … troubleshooting and interview questions](/learn/linux-devops) - [OOP](/learn/oop), [Design Patterns](/learn/design-patterns), [Clean Code & SOLID …

  • Object Relationships: Association, Aggregation and Composition

    … Demolish the house and the rooms are gone too. (strong) OOP has a name for each of these …

  • Inheritance

    … each adds or overrides its own behavior](/img/oop/inheritance.svg) extends and super ts class Animal { constructor …

  • Composition over Inheritance

    … in OOP. ![Inheritance needs a class for every combination; composition plugs small parts together](/img/oop/composition-vs …

  • SOLID at a Glance

    … to hurt (see YAGNI ). - ❌ "SOLID is only for OOP." The ideas apply to functions, modules and services. Key …

  • Abstraction

    … the engine's complexity stays hidden underneath](/img/oop/abstraction.svg) Abstraction vs encapsulation These two are often …

  • Classes and Objects

    … a separate instance with its own data](/img/oop/class-vs-object.svg) Your first class ts class …

  • Encapsulation

    … world can only press its public buttons](/img/oop/encapsulation.svg) The problem without encapsulation ts class BankAccount …

  • Interfaces vs Abstract Classes

    … some methods for children to fill in](/img/oop/interface-vs-abstract.svg) Interfaces An interface describes the …

  • Polymorphism

    … each shape calculates it its own way](/img/oop/polymorphism.svg) Polymorphism in code ts interface Shape { area …

  • JavaScript Language Fundamentals

    … It supports the four OOP pillars: Pillar In JavaScript --- --- Encapsulation private fields, closures, modules Abstraction Expose a small …

  • Behavioral Patterns II: Chain, Template, Iterator, Mediator, Memento, Visitor

    … Hello"); history.push(editor.save()); // 💾 snapshot editor.type(" oops!!!"); editor.restore(history.pop()); // ⏪ back to "Hello" You've …