欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

OOP 博客分类: OO* OOPOOHTML 

程序员文章站 2024-03-07 12:17:15
...

OCP: Open for extension, close for modification(black box)

SRP: Single responsibility Principle(do one thing, and do one thing well).

DIP: Dependency Inversion Principle(depend on abstraction, not on implementation)

ISP: Interface Segregation Principle (narrow interfaces)

Law of Demeter: Don’t talk to “strangers” (shallow dependencies)

 

KISS: Keep It Simple and Stupid

DRY: Don’t Repeat Yourself.

 

 

Package level rules:

 Links:

http://sis36.berkeley.edu/projects/streek/agile/oo-design-principles.html

相关标签: OOP OO HTML