diff options
| author | Fuwn <[email protected]> | 2024-05-18 00:38:03 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-18 00:38:03 -0700 |
| commit | b6233bd925eb8bcf848e580371814e3bd745c63f (patch) | |
| tree | 0ab5728b7153c435ad4dadcb42af9e744f70da9a /University.hh | |
| parent | f (diff) | |
| download | cst_136_assignment_07-main.tar.xz cst_136_assignment_07-main.zip | |
Diffstat (limited to 'University.hh')
| -rw-r--r-- | University.hh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/University.hh b/University.hh index 15a28c5..23702a4 100644 --- a/University.hh +++ b/University.hh @@ -2,12 +2,9 @@ #include <string> -// #include "College.hh" -// #include "High_School.hh" - class University { friend class College; - friend class high_school; + friend class High_School; private: std::string university_name; @@ -15,15 +12,17 @@ private: static int pin; public: - University() = default; - University(const University &); + University() : university_pin(0) {} + University(University &) = default; virtual ~University() = default; - void set_univ_pin(int upin); + void set_univ_pin(int); int get_univ_pin() const; + static void incrementPin() { pin += 1; } - bool operator==(const University &) const; virtual void print_univ_pin(); + + bool operator==(const University &) const; }; |