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