Class Diagram
2016-11-26 13:57:54 0 举报
类图(Class Diagram)是一种用于描述系统结构和关系的静态图形表示方法。它展示了系统中的类、接口、关联关系、继承关系、实现关系等元素,并显示了它们之间的交互和依赖。类图中的每个类都用一个矩形表示,矩形内包含类名、属性和方法。类与类之间的关系通过连线表示,如关联关系用实线连接,继承关系用空心箭头指向父类,实现关系用虚线连接。类图有助于开发人员更好地理解系统的设计和功能,从而进行有效的代码编写和维护。
作者其他创作
大纲/内容
InsuranceOrder
-id:String-insurance:int-uid:String-date:Date-start:Date-end:Date-money:float-info:String
InsuranceController
-toubao:String-xubao:String-tuibao:bool-lipei:String-seeUser:String-pay:bool-seeInsurance:String-seeInsuranceOrder:String
PayRecordDAO
+ save(payRecord: PayRecord): boolean+ del(payRecord: PayRecord): boolean+ findById(id: int): PayRecord
User
-uid: String-password: String-type: String-name: String-sex: String-idNumber: String-telephone: String-regTime: Date-state: String-licenseNumber: String-drivetype: String
CarDAO
+ save(car:Car ):boolean+ del(car:Car):boolean+ findById(id:String):Car
Car
-carID:int-carNumber:String-ownerID:String-userID:String-type:String
+ operation1(params):returnType- operation2(params)- operation3()
Insurance
-id:int-name:String-info:String-comID:int
InsuranceOrderDAO
+ save(insuranceorder:InsuranceOrder):boolean+ del(insuranceorder:InsuranceOrder):boolean+ findById(id:String):InsuranceOrder
UserDAO
+ save(user:User):boolean+ del(user:User):boolean+ findById(id:String):User
PayRecord
-id: int-tool: String-from: int-to: int-money: float-date: Date
InsuranceDAO
+ save(insurance:Insurance):boolean+ del(insurance:Insurance):boolean+ findById(id:String):Insurance
0 条评论
回复 删除
下一页