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

  1.                               // Chapter 7 - Programming exercise 2
  2. #ifndef CARHPP
  3. #define CARHPP
  4.  
  5. #include "vehicle.hpp"
  6.  
  7. class car : public vehicle {
  8.    int passenger_load;
  9. public:
  10.    void initialize(int in_wheels, float in_weight, int people = 4);
  11.    int passengers(void);
  12. };
  13.  
  14. #endif
  15.  
  16.  
  17.  
  18.  
  19. // Result of execution
  20. //
  21. // (this file cannot be executed)
  22.