类图 1.好处:a.用于分析和设计类 b.直观容易理解 2. dog 类名 + name:String public 属性名:类型 +health:int public 属性名:类型 -love:int private 属性名:类型 +Print():void public 方法名:返回值类型