Home > Back-end >  New people for help
New people for help

Time:12-11

What is the purpose of program setyear and getyear

CodePudding user response:

Get and set the year value

CodePudding user response:

Setyear this function is used to set the value of the year of the Date class variables
Getyear 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 time

CodePudding user response:

Class data members are private by default, the member function to set the in public, to obtain the value of the year
  • Related