Home CPSC 340

Operator Exercise

Objective

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

Task

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.


Details


Submitting

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.