reellearning

User defined Type - VPet.h

Jun 4th, 2012
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. /*
  2.  * VPet.h
  3.  *
  4.  *  Created on: Aug 10, 2011
  5.  *      Author: Derek
  6.  */
  7.  
  8. #ifndef VPET_H_
  9. #define VPET_H_
  10.  
  11. #include <iostream>
  12.  
  13. class VPet
  14. {
  15.     public:
  16.  
  17.     // Constructors (Member function)
  18.     VPet(double, bool);
  19.     VPet();
  20.  
  21.     // Member functions
  22.     void feedPet(int amount);
  23.     bool getHungry() const;
  24.     double getWeight() const;
  25.  
  26.     private:
  27.  
  28.     // Data Members
  29.     double weight;
  30.     bool hungry;
  31. };
  32.  
  33. #endif /* VPET_H_ */
Advertisement
Add Comment
Please, Sign In to add comment