SOLID Principles - Interview Reference
Principle Full Form Definition Goal Benefit
SRP Single Responsibility A class should have only one responsibility One reason to Better maintainabil
Principle or reason to change. change
OCP Open/Closed Principle Software entities should be open for Extend, don't modify Safer feature upgra
extension but closed for modification.
LSP Liskov Substitution Subclasses should be replaceable for their Subtypes work as Prevents unexpect
Principle base classes without breaking the program base
behavior.
ISP Interface Segregation Clients should not be forced to depend on Use only needed Keeps classes fo
Principle methods they do not use. interfaces clean
DIP Dependency Inversion High-level modules should not depend on Depend on Decouples compon
Principle low-level modules. Both should depend on abstractions
abstractions.
Page 1