类的设计原则--OOD

前端之家收集整理的这篇文章主要介绍了类的设计原则--OOD前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
[object oriented design]

1、开闭原则

Software entities (classes,modules,function,etc.) should be open for extension,but closed for modification. 软件实体(模块,类,方法等)应该对扩展开放,对修改关闭

原文链接:https://www.f2er.com/javaschema/286091.html

猜你在找的设计模式相关文章