OOPs and SOLID Principle Using Typescript 1740583851
OOPs and SOLID Principle Using Typescript 1740583851
Basics
Class
Object
Property (Attribute)
Method (Behavior)
Base Class (Superclass/Parent Class)
Derived Class (Subclass/Child Class)
Abstract Class
Interface
Core OOPs
Inheritance
Encapsulation
Polymorphism
Abstraction
SOLID Principles
Single Responsibility Principle (SRP)
Open/Closed Principle (OCP)
Liskov Substitution Principle (LSP)
Interface Segregation Principle (ISP)
Dependency Inversion Principle (DIP)
Interface Segregation Principle (ISP): Creating smaller, more specific interfaces. Avoids forcing
classes to implement unnecessary methods.
Dependency Inversion Principle (DIP): Depending on abstractions rather than concrete
implementations. Increases flexibility and testability.