home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / c / c_plus_tut / hpp / ch07_2b < prev    next >
Encoding:
Text File  |  1994-04-05  |  398 b   |  24 lines

  1.                               // Chapter 7 - Programming exercise 2
  2. #ifndef TRUCKHPP
  3. #define TRUCKHPP
  4.  
  5. #include "vehicle.hpp"
  6.  
  7. class truck : public vehicle {
  8.    int passenger_load;
  9.    float payload;
  10. public:
  11.    void init_truck(int how_many = 2, float max_load = 24000.0);
  12.    float efficiency(void);
  13.    int passengers(void);
  14. };
  15.  
  16. #endif
  17.  
  18.  
  19.  
  20.  
  21. // Result of execution
  22. //
  23. // (this file cannot be executed)
  24.