Hello everyone, I am trying to learn c++ and I am having a very hard time understanding this problem.
I am supposed to create a class called date that has the following requirements:
3 constructors
1 destructor
getMonth
getDay
getYear
setMonth
setDay
setYear
A function print with no arguments
An equality overload
An assignment overload
A copy constructor
For the child time it must have
3 constructors
1 destructor
getHours
getMinutes
getSeconds
setHours
setMinutes
setSeconds
A function print with no arguments
An equality overload
An assignment overload
A copy constructor
I know how to do do the simple code like getHours or getDate or setHours etc. However, I am not exactly sure where to go for the 3 constructors, equality overload, assignment overload and the copy constructor. If anyone can point me in the right direction I would appreciate it. Thanks