In this lab, we learn to define overloaded functions and operators in a C++ Class. In particular, we will add the following to the"dateClass"defined in closed lab 16:(Note: Add the new code directly to the programs developed in lab16. Do not create a new codelite project for this lab.)
You will need to modify both the specification file and the implementation file of the class "dateClass" to incorporate the declaration and definition of the new constructor and the overloaded operators.
Handin the program with the following command:
handin ola7 dateClass.h dateClass.cpp main.cpp
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here