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

  1.                                  // Chapter 7 - Program 1 - VEHICLE.H
  2. // vehicle header file
  3.  
  4. #ifndef VEHICLE_H
  5. #define VEHICLE_H
  6.  
  7. class vehicle {
  8. protected:
  9.    int wheels;
  10.    float weight;
  11. public:
  12.    void initialize(int in_wheels, float in_weight);
  13.    int get_wheels(void);
  14.    float get_weight(void);
  15.    float wheel_loading(void);
  16. };
  17.  
  18. #endif
  19.  
  20.  
  21.  
  22. // Result of execution
  23. //
  24. // (This file cannot be executed)
  25.