The word SOLID is an acronym invented by Robert C. Martin for the five basic principles of object-oriented programming. By following these five principles, a developer is more likely to create a great, durable, and maintainable application:
- Single Responsibility Principle: A class should have only a single reason to change.
- Open-Closed Principle: A class should be open for extension and closed for modification. This is attributed to Bertrand Meyer.
- Liskov Substitution Principle: This was created by Barbara Liskov, and she says a class should be replaceable by others that extend that class.
- Interface Segregation Principle: A few specific interfaces are preferable to one general-purpose interface.
- Dependency Inversion Principle ...