CodePudding user response:
Get and set the year valueCodePudding user response:
Setyear this function is used to set the value of the year of the Date class variablesGetyear this function is used to obtain the value of the year of the Date class variables
CodePudding user response:
You know the date of older phones have set up and see how one and the same time on the screen!CodePudding user response:
Setyear function setup time, getyear function returns in timeCodePudding user response:
Class data members are private by default, the member function to set the in public, to obtain the value of the year