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 03:40
Hello my name is mihai and i need your : )i have to do a python project in computer science and i’m really busy with my mocks this period of time besides this i’m not good at coding so could someone pls pls pls sort me out ? i actually beg ; ))
Answers: 1
question
Computers and Technology, 22.06.2019 14:30
What percentage of companies is projected to use social media to locate new employees in 2012
Answers: 2
question
Computers and Technology, 23.06.2019 05:30
Sally is editing her science report about living things. she needs to copy a paragraph from her original report. order the steps sally needs to do to copy the text to her new document.
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Intellectual property rights are exclusive rights that protect both the created and the creation. ipr offers exclusively what benefits to the person or people covered by it
Answers: 3
You know the right answer?
Create a class called date that
includes three pieces of information as data members—a month (...
Questions
question
Mathematics, 20.04.2020 20:16
question
Mathematics, 20.04.2020 20:16
Questions on the website: 13722360