home *** CD-ROM | disk | FTP | other *** search
- // Contents.h
-
- // Get needed include files
- #include <afx.h>
-
- // Things to put in a RailroadCar
- class Cow {
- public:
- // Public member functions
- CString isA() { return "Cow"; }
- CString Moo() { return "Moo!"; }
- };
-
- class Passenger {
- public:
- // Constructors and destructor
- Passenger(CString NewName) { Name = NewName; }
-
- // Public member functions
- CString isA() { return "Passenger"; }
- CString GetName() { return Name; }
- CString Complain() { return " Oh my poor back!"; }
-
- private:
- CString Name;
- };
-