Explore tens of thousands of sets crafted by our community.
SOLID Principles
5
Flashcards
0/5
I
Interface Segregation Principle (ISP): No client should be forced to depend on methods it does not use.
D
Dependency Inversion Principle (DIP): High-level modules should not depend on low-level modules. Both should depend on abstractions. Additionally, abstractions should not depend on details; details should depend on abstractions.
S
Single Responsibility Principle (SRP): A class should have only one reason to change, meaning that a class should only have one job or responsibility.
O
Open/Closed Principle (OCP): Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.
L
Liskov Substitution Principle (LSP): Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.
© Hypatia.Tech. 2024 All rights reserved.