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

  1.                                   // Chapter 7 - Program 1
  2. // vehicle header file
  3.  
  4. #ifndef VEHICLEHPP
  5. #define VEHICLEHPP
  6.  
  7. class vehicle {
  8.    int wheels;
  9.    float weight;
  10. public:
  11.    void initialize(int in_wheels, float in_weight);
  12.    int get_wheels(void);
  13.    float get_weight(void);
  14.    float wheel_loading(void);
  15. };
  16.  
  17. #endif
  18.