UML类图

立即使用

继承<<interface>>Human+ setHead(): void+ setBody(Body): void+ display(): voidClass Head- name: String+ setName (String) : void+ getName() : StringClass Body- name: String+ setName (String) : void+ getName() : String组合组合Class Driver+ car: Car+ addCar(Driver driver) : void实现Class BusDriver+ bus: BusClass Hat+ name: String+ setName (String) : void+ getName() : StringClass Clothes- name: String+ setName (String) : void+ getName() : String聚合聚合<<interface>>Vehicle+ run(): voidClass Car+ name: String+ beforeRun(Oil oil) : void+ run() : void11实现Class Bus+ name: StringClass Taxi+ name: String继承继承11关联Class Ship+ name: String+ run() : voidClass Oil+ type: String依赖实现依赖关联
631
2
20
发布时间: 2021-04-14