diff options
| author | Fuwn <[email protected]> | 2024-05-16 17:23:23 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-05-16 17:23:23 -0700 |
| commit | b44710c5370129d59a2d2e12c70bac9269f7ecd5 (patch) | |
| tree | d2907b6f529598e7a0f468b8f93e0d7267e34c44 /College_Impl.cpp | |
| download | cst_136_assignment_07-b44710c5370129d59a2d2e12c70bac9269f7ecd5.tar.xz cst_136_assignment_07-b44710c5370129d59a2d2e12c70bac9269f7ecd5.zip | |
f
Diffstat (limited to 'College_Impl.cpp')
| -rw-r--r-- | College_Impl.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/College_Impl.cpp b/College_Impl.cpp new file mode 100644 index 0000000..6f9c66c --- /dev/null +++ b/College_Impl.cpp @@ -0,0 +1,29 @@ +#include <iostream> +#include <string> +#include <utility> + +#include "College.hh" +#include "University.hh" + +auto College::set_college_name(std::string name) -> void { + this->college_name = std::move(name); +} + +auto College::get_college_name() -> std::string { return this->college_name; } + +auto College::set_college_location(std::string location) -> void { + this->college_location = std::move(location); +} + +auto College::get_college_location() -> std::string { + return this->college_location; +} + +// auto College::operator==(University) -> void { +// // compare all fields of college and university +// } + +auto College::print_pin(const University &) -> void { + std::cout << "University pin: " << this->university_pin.get_univ_pin() + << '\n'; +} |