subject

Create a class called date that
includes three pieces of information as data members—a month (type int), a day (type int) and a year (type int).
have a constructor with three parameters to initialize the three data members. call setters inside to initialize each attribute.
provide a set and a get method for each data member. assume that the values provided for the year and day are correct, but ensure that the month value is in the range 1–12; if it isn’t, set the month to 1.
provide a member function displaydate that displays the month, day and year separated by forward slashes (/).

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 24.06.2019 07:30
Consider the folloeing website url: what does the "http: //" represent? a. protocal identifier. b. ftp. c. domain name d. resource name
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
George is working as a programming team lead. which statements correctly describe the skills that he requires?
Answers: 3
question
Computers and Technology, 25.06.2019 07:30
In a single day more than blank people's lives are affected simply by driving a motor vehicle
Answers: 1
question
Computers and Technology, 25.06.2019 14:00
The first few lines of a script that say "using" that point the code to the right groups are called
Answers: 1
You know the right answer?
Create a class called date that
includes three pieces of information as data members—a month (...
Questions
question
Physics, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
question
English, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
question
English, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
question
Mathematics, 07.01.2021 01:00
Questions on the website: 13722367