SOLID Principles: Difference between revisions
Appearance
m Q moved page SOLID Principals to SOLID Principles: typo |
No edit summary |
||
| Line 11: | Line 11: | ||
[[Category:Object-Oriented Programming]] | [[Category:Object-Oriented Programming]] | ||
[[Category:Programming Principles]] | |||
Latest revision as of 16:54, 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