// stu-teach.h // Student and Teacher class // delcarations #include // prevent multiple inclusions of header file #ifndef stu_teach_h #define stu_teach_h class Student { public: Student(char * = ""); void setName(char *); void setYear(int); void print(); private: char name[25]; int year; }; class Teacher { public: Teacher(char * = ""); void setName(char *); int addCourse(); // add a course void print(); private: char name[25]; int numcourses; // number of courses teaching static int MaxCourses; // max numer of courses // any Teacher could teach }; #endif