# | Principle | Java |
---|---|---|
01: Delegation | Solution | |
02: Slap | Solution | |
03: Yagni | Solution | |
04: Single Responsibility Principle | Solution | |
05: Open-Closed Principle | Solution | |
06: Liskov Substitution principle | Solution | |
07: Interface segregation principle | Solution | |
08: Dependency Inversion principle | Solution |
https://en.wikipedia.org/wiki/SOLID
S β Single Responsibility principle
: There should never be more than one reason for a class to change. In other words, every class should have only one responsibility.
O β Open-Closed principle
: Software entities ... should be open for extension, but closed for modification
L β Liskov Substitution principle
: Functions that use pointers or references to base classes must be able to use objects of derived classes without knowing it
I β Interface Segregation principle
: Clients should not be forced to depend upon interfaces that they do not use.
D β Dependency Inversion principle
: Depend upon abstractions, not concretions.
The workspace contains two folders by default, where:
src
: the folder to maintain sourceslib
: the folder to maintain dependencies
Meanwhile, the compiled output files will be generated in the bin
folder by default.
If you want to customize the folder structure, open
.vscode/settings.json
and update the related settings there.
Please feel free to contact me or make a pull request.
Created by $username on $today
Copyright (c) $today.year . All rights reserved.
Last modified $file.lastModified