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

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