文件名称:CPP
介绍说明--下载内容均来自于网络,请自行研究使用
1、 定义一个车(vehicl)基类,具有MaxSpeed、Weight等成员变量,run、stop等成员函数,由此派生出自行车(bicycle)类、汽车(motorcar)类。自行车(bicycle)类有高度(Height)等属性,汽车(motorcar)类有座位数(SeatNum)等属性。从bicycle和motorcar派生出摩托车(motorcycle)类,其中包含虚函数,虚基类,多态,综合性较高。-1, defines a car (vehicl) base class, with MaxSpeed, Weight and other members of the variable, run, stop and other member functions, which derive a bike (bicycle), automobiles (motorcar) class. Bike (bicycle) class has a high degree of (Height) and other properties, cars (motorcar) class has seats (SeatNum) and other properties. Derived from the bicycle and motorcar motorcycle (motorcycle) class, which contains virtual functions, virtual base classes, polymorphism, comprehensive high.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
C++.cpp