UML类图-程序
2020-05-14 16:54:40 0 举报
UML类图
作者其他创作
大纲/内容
Circle
#double radius;
void setRadiusdouble getRadius() double area()
Teacher
#string name; #int age; #string title;
void display()
第四章
Time
-int minute;-int sec;
void display( )
3.08
Graduate
-string num; -string name; -char sex; - string tutor;
void setdata3( )void display3( )
Postdoctor
-float wage
void show()
Student
#string name1;#char sex;#float score;
void display()
第三章.继承与派生
-num: string-name: string-sex: char
void setdatavoid display
Complex
-double real;-double imag;
Person类
string name; char sex;
void display();
3.9
Student类
string num;double score;
void show();
Teacher类
string num;string title;
Cylinder
double height;
void setHeight double getHeight double area double volume
3.01
Postdoctor类
string num;void show(); string num;void show();
string thesis; void show_all();
Undergraduate
-string num;-string name; -char sex;-string inclass;
void setdata2void display2
Point
void setPointfloat getXfloat getY
收藏
0 条评论
下一页