Question: C + + LANGUAGE Each class variable needs its own set function instea XN 1 4 d of one common one. And the set
C LANGUAGE
Each class variable needs its own set function instea XN d of one common one.
And the set functions must check whether the user has entered valid values.
PLEASE HELP I RECEIRVED A FAILED FOMEWORK MARK :(
Define a class Date that contains integer variables for the day, month, and year.
Create the necessary methods for the class: set, get, default constructor, constructor with arguments.
Create a method that calculates the number of days between two dates objects submitted to it
Create a dateUpdate method that calculates the next day assuming days in each month
Define a class Class that contains integer variables hours and minutes. Class Time inheritance class Date members.
Create the necessary methods for the class: set, get, default constructor, constructor with arguments.
Create a timeUpdate method that calculates time after one minute.
Create a method dateAndTime, which calculates the time after one minute taking into account the date if it is : then after one minute the time will be : the next day; if the same time is on December then after one minute the new year will be
Write a program implementation that demonstrates all the methods in both classes."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
