home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / tutorial / cpptutor / source / truck.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-15  |  417 b   |  23 lines

  1.                                    // Chapter 7 - Program 6 - TRUCK.H
  2. #ifndef TRUCK_H
  3. #define TRUCK_H
  4.  
  5. #include "vehicle.h"
  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. // Result of execution
  21. //
  22. // (this file cannot be executed)
  23.