diff options
Diffstat (limited to 'University.hh')
| -rw-r--r-- | University.hh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/University.hh b/University.hh index 16f86be..15a28c5 100644 --- a/University.hh +++ b/University.hh @@ -2,8 +2,13 @@ #include <string> +// #include "College.hh" +// #include "High_School.hh" + class University { - // declare friend classes college and high_school here + friend class College; + friend class high_school; + private: std::string university_name; int university_pin; @@ -16,11 +21,9 @@ public: virtual ~University() = default; void set_univ_pin(int upin); - int get_univ_pin(); + int get_univ_pin() const; static void incrementPin() { pin += 1; } - // == typical returns a boolean, and since this is under the getters section, - // I'll take it that this was meant to be for assignment. - University &operator=(const University &) = default; + bool operator==(const University &) const; virtual void print_univ_pin(); }; |