diff options
Diffstat (limited to 'University.hh')
| -rw-r--r-- | University.hh | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/University.hh b/University.hh new file mode 100644 index 0000000..16f86be --- /dev/null +++ b/University.hh @@ -0,0 +1,26 @@ +#pragma once + +#include <string> + +class University { + // declare friend classes college and high_school here +private: + std::string university_name; + int university_pin; + static int pin; + +public: + University() = default; + University(const University &); + + virtual ~University() = default; + + void set_univ_pin(int upin); + int get_univ_pin(); + 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; + virtual void print_univ_pin(); +}; |