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 /College_Impl.cpp | |
| parent | f (diff) | |
| download | cst_136_assignment_07-76a74448764e070821735e0d72d675e6c989ff8d.tar.xz cst_136_assignment_07-76a74448764e070821735e0d72d675e6c989ff8d.zip | |
f
Diffstat (limited to 'College_Impl.cpp')
| -rw-r--r-- | College_Impl.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/College_Impl.cpp b/College_Impl.cpp index 6f9c66c..1d96b2d 100644 --- a/College_Impl.cpp +++ b/College_Impl.cpp @@ -19,11 +19,11 @@ 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::operator==(const University &university) -> bool { + return this->university_pin.get_univ_pin() == university.get_univ_pin(); +} -auto College::print_pin(const University &) -> void { - std::cout << "University pin: " << this->university_pin.get_univ_pin() +auto College::print_pin() -> void { + std::cout << "University Pin: " << this->university_pin.get_univ_pin() << '\n'; } |