diff options
| author | Fuwn <[email protected]> | 2024-05-16 17:35:22 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-16 17:35:22 -0700 |
| commit | 76a74448764e070821735e0d72d675e6c989ff8d (patch) | |
| tree | 4ffc21eca6b2fc602117faaa269b768237b820ac /University.hh | |
| parent | f (diff) | |
| download | cst_136_assignment_07-76a74448764e070821735e0d72d675e6c989ff8d.tar.xz cst_136_assignment_07-76a74448764e070821735e0d72d675e6c989ff8d.zip | |
f
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(); }; |