315 第12章 UML模型的C++实现
area = length * width; return area; }
string getName() { return \ }
}
class Triangle : Shape{ private:
double length; double height; public:
Triangle(double l, double h){ length = l; width = w; }
double compArea() {
area = 0.5 * length * height; return area; }
string getName() {
return \ } }
class Student{ public:
Schedule* theSchedule;
Student(){
theSchedule = new Schedule[5]; } }
class Schedule{ public:
Student theStudent; Schedule(){} }
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库第12章(7)在线全文阅读。
相关推荐: