Grokking the Object Oriented Design Interview
Vote
0% completed
Keeping the Design Honest with SOLID
You have a class diagram. It is complete and it may still be a poor design.
SOLID is five rules that catch the common ways a class diagram goes wrong. The name is five initials, one per rule. This lesson is not a tour of the theory. It is five checks you can run over the diagram you just drew, in about five minutes.
Run the five checks in this order
Single responsibility. A class should have one reason to change.
Read each class name and say what it is responsible for. If the sentence needs an "and", the class is doing two jobs. A `ParkingLot
.....
.....
.....
Like the course? Get enrolled and start learning!