// practice1.h // Example of a question on inheritance // CS210 - S'03 - Ray S. Babcock - 4/28/03 // #ifndef PRACTICE_H_ #define PRACTICE_H_ class House { public: House(int = 3); int GetDoor(); void SetDoor(int = 4); int Add1Door(); int Door; }; class Room : public House { public: Room(int = 6); int GetLight(); void SetLight(int = 2); int Add1Light(); int Add1Door(); private: int Light; }; #endif