Category: Solid
The Dependency Inversion Principle (DIP) is one of the principles of object-oriented programming (OOP). DIP recommends that, in the software development process, when interdependent classes are formed and these classes are tightly related, these dependencies should be reversed and the dependencies made less stringent.
The "Interface Segregation Principle" (ISG) or "Interface Segregation Principle" is a principle used in software design. According to this principle, it is said that an interface should be as customized as possible and that interfaces should contain only the features used.
The Liskov Substitution Principle (LSP) is an inheritance principle developed by Barbara Liskov, which makes it possible to replace a subclass in a class's inheritance tree with a higher-level class. According to this principle, in order for subclasses to be used in place of higher-level classes, subclasses must have the same properties and behaviors.
The open-closed principle is a programming principle that stipulates that a class should not be modified to extend its functionality, but that new classes should be created to add new functionality. This principle makes our programs more flexible, integrated and easier to maintain.
The single-responsibility principle is a programming principle that stipulates that a class or function should have only one task. This principle makes our programs less error-prone, easier to understand, and easier to maintain.
1