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, 22.06.2019 10:30
You have a large, late-model pick-up truck with a rear seat. the pick-up truck weighs 6,500 pounds. the florida seat belt law
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
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
Biology, 22.01.2021 20:50
question
Computers and Technology, 22.01.2021 20:50
question
Mathematics, 22.01.2021 20:50
question
English, 22.01.2021 20:50
question
Mathematics, 22.01.2021 20:50