问题 1
What is the SOLID principle? Explain each principle briefly.
SOLID is an acronym for five design principles: Single Responsibility, Open-Closed, Liskov Substitution, Interface Segregation, and Dependency Inversion.
Example:
Single Responsibility: A class should have only one reason to change. Open-Closed: Software entities should be open for extension but closed for modification.
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗?
添加评论
查看评论