home *** CD-ROM | disk | FTP | other *** search
/ Boston 2 / boston-2.iso / DOS / PROGRAM / C / CTUTOR / ANSWERS.ZIP / CH07_2B.HPP < prev    next >
Text File  |  1990-07-20  |  422b  |  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.