summaryrefslogtreecommitdiff
path: root/College_Impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'College_Impl.cpp')
-rw-r--r--College_Impl.cpp10
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';
}