随笔分类 - OO Detail Design
Object-Oriented Detail Design
摘要:什么是类?将某类东西归纳在一起,可以成为一个类。类有很多种提炼角度,需要根据系统地目标、业务的场景,选取合适的角度对事物进行归纳。什么是类图?类图可能是UML中使用的最多的一种图。和其他图一样,类图的基本语法并不复杂,可能一两天就能掌握,但是真正做到灵活的使用类图,可能需呀多年的功力。类图是锻炼OOA(OO Analysis)和OOD(OO Design)思想的重要工具,有助于OOA、OOD思想的提升。本篇博文,重点讲述类图中类与类之间的关系以及这种关系在代码中的实现形式。写作本文的原因是:网上关于UML类图的语法规则等的资料很多,但是涉及到关系在代码中实现形式的文章却很少。这是很容易理解的:
阅读全文
摘要:IntroductionHere I am going to discuss Liskov substitution principleof SOLID.BackgroundIf you read my previous two articles it will be better for you to understand SRP,OCP,ISP,DIP of SOLID.Understanding Open Closed Principle and Dependency InversionUnderstanding Single Responsibility and Interface S
阅读全文
摘要:IntroductionIn the previous onearticle,DebugLZQ discussed OCP(Open Closed Principle)and DIP(Dependency InversionPrinciple) of SOLID.Here I am going to discuss SRP(Single Responsibility Principle)and ISP(Interface Segregation Principle) of SOLID.BackgroundIf you read the previous one article it will
阅读全文
摘要:IntroductionIn the following three articles I'm going to discuss SOLID.This is the Part One of the series.I'll try to explain Open Colsed Priciple and Dependency Inversion.Now what does SOLID mean? SOLID is the OOD(Object-Orient Design) Principle,where each letter has its own meanS->Singl
阅读全文

浙公网安备 33010602011771号