Skip to content

adityabhan/SOLID

Repository files navigation

SOLID

SOLID Principles

The SOLID Principles are five principles of Object-Oriented class design. They are a set of rules and best practices to follow while designing a class structure.

SOLID stands for:

S : Single Responsibility
O : Open-Closed
L : Liskov Substitution
I : Interface Segregation
D : Dependency Inversion

Structure of this reposiitory

Each principle is explained in its respective directory which contains an Ideal and Non-Ideal scenario.

For example: S - (Single Responsibility) directory

Contains not_ideal.py to show the voilation of the principle.
And ideal.py tries to follow the principle.