Google News
logo
Flutter - Interview Questions
Explain Solid Principle.
The SOLID principles are a set of guidelines that can help developers design software that is easy to maintain, extend, and scale. These principles were first introduced by Robert C. Martin in his book “Agile Software Development, Principles, Patterns, and Practices,” and they have since become an important part of the software development community.

The SOLID principles are :

Single Responsibility Principle (SRP) : A class should have only one reason to change.

Open-Closed Principle (OCP) : Software entities (classes, modules, etc.) should be open for extension but closed for modification.

Liskov Substitution Principle (LSP) : Subtypes must be substitutable for their base types.

Interface Segregation Principle (ISP) : Clients should not be forced to depend on interfaces they do not use.

Dependency Inversion Principle (DIP) : High-level modules should not depend on low-level modules. Both should depend on abstractions.
Advertisement