summaryrefslogtreecommitdiff
path: root/High_School_Impl.cpp
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-05-16 17:35:22 -0700
committerFuwn <[email protected]>2024-05-16 17:35:22 -0700
commit76a74448764e070821735e0d72d675e6c989ff8d (patch)
tree4ffc21eca6b2fc602117faaa269b768237b820ac /High_School_Impl.cpp
parentf (diff)
downloadcst_136_assignment_07-76a74448764e070821735e0d72d675e6c989ff8d.tar.xz
cst_136_assignment_07-76a74448764e070821735e0d72d675e6c989ff8d.zip
f
Diffstat (limited to 'High_School_Impl.cpp')
-rw-r--r--High_School_Impl.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/High_School_Impl.cpp b/High_School_Impl.cpp
index e69de29..64c410a 100644
--- a/High_School_Impl.cpp
+++ b/High_School_Impl.cpp
@@ -0,0 +1,31 @@
+#include <iostream>
+#include <string>
+#include <utility>
+
+#include "High_School.hh"
+#include "University.hh"
+
+auto High_School::set_high_school_name(std::string name) -> void {
+ this->high_school_name = std::move(name);
+}
+
+auto High_School::get_high_school_name() -> std::string {
+ return this->high_school_name;
+}
+
+auto High_School::set_high_school_location(std::string location) -> void {
+ this->high_school_location = std::move(location);
+}
+
+auto High_School::get_high_school_location() -> std::string {
+ return this->high_school_location;
+}
+
+auto High_School::operator==(const University &university) -> bool {
+ return this->university_pin.get_univ_pin() == university.get_univ_pin();
+}
+
+auto High_School::print_pin() -> void {
+ std::cout << "University Pin: " << this->university_pin.get_univ_pin()
+ << '\n';
+}