类图

好处:

  a.用于分析和设计类

  b.直观容易理解


            dog                              类名
     + name:String             public 属性名:类型  
     +health:int                  public 属性名:类型  
     -love:int                     private 属性名:类型  
     +Print():void           public 方法名:返回值类型

原文地址:https://www.cnblogs.com/zyani/p/6903131.html