Home CPSC 340

Operator Exercise


To be able to use operator overloading in C++.


For this lab, you will work with a program that creates a Time class. This class stores an hours and minutes field and has functions for printing the time, and testing if a time is before another. You will change this class to use operator overloads for these instead of named functions.



When your program works, email the code to ifinlay@umw.edu.

Copyright © 2018 Ian Finlayson | Licensed under a Creative Commons Attribution 4.0 International License.