home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
CPROG
/
CPTUTOR2.ZIP
/
ANSWERS.ARC
/
CH07_2B.HPP
< prev
next >
Wrap
Text File
|
1990-07-20
|
422b
|
24 lines
// Chapter 7 - Programming exercise 2
#ifndef TRUCKHPP
#define TRUCKHPP
#include "vehicle.hpp"
class truck : public vehicle {
int passenger_load;
float payload;
public:
void init_truck(int how_many = 2, float max_load = 24000.0);
float efficiency(void);
int passengers(void);
};
#endif
// Result of execution
//
// (this file cannot be executed)