SOLID Principles: Difference between revisions
Appearance
New page for SOLID, needs more detail |
mNo edit summary |
||
| Line 1: | Line 1: | ||
'''SOLID''' is an acronym for five design principles in [[Object-Oriented Programming]] to make the software more readable, extensible, and maintainable. The '''SOLID Principles''' are as follows: | '''SOLID''' is an acronym for five design principles in [[Object-oriented programming|Object-Oriented Programming]] to make the software more readable, extensible, and maintainable. The '''SOLID Principles''' are as follows: | ||
:'''<u>S</u>ingle Responsibility Principle''' - a class should only have a single responsibility. | :'''<u>S</u>ingle Responsibility Principle''' - a class should only have a single responsibility. | ||
Revision as of 16:50, 14 March 2021
SOLID is an acronym for five design principles in Object-Oriented Programming to make the software more readable, extensible, and maintainable. The SOLID Principles are as follows:
- Single Responsibility Principle - a class should only have a single responsibility.
- Open/Closed Principle - software should be open for extension but closed for modification.
- Liskov Substitution Principle - "objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program."
- Interface Segregation Principle - "many client-specific interfaces are better than one general-purpose interface."
- Dependency Inversion Principle - one should "depend upon abstractions, [not] concretions."
SOLID Principles in G
More to Come