private: int MaxSpeed; int Weight; public: //**********found********** vehicle (int maxspeed,intweight):______ ~vehicle(); int getMaxSpeed()return MaxSpeed; int getWeight()return Weight; ; //**********found********** class bicycle:______public vehicle
private: int Height; public: bicycle(int maxspeed,int weight,int height):vehicle(maxspeed,weight),Height(height) int getHeight()return Height;; ; //**********found********** class motorcar:______public vehicle
private: int SeatNum; public: motorcar(int maxspeed,int weight,int seatnum):vehicle(maxspeed,weight),SeatNum(seatnum) int getSeatNum()return SeatNum;; ; //**********found********** class motorcycle:______
public: motorcycle(int maxspeed,intweight,int height):vehicle (maxspeed,weight),bicycle(maxspeed,weight,height),motorcar(maxspeed,weight,1) ; void main ()