From 76a74448764e070821735e0d72d675e6c989ff8d Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 16 May 2024 17:35:22 -0700 Subject: f --- University_Impl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'University_Impl.cpp') 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'; -- cgit v1.2.3