8. Design a class called Date that has integer data members to store month, day, and year. The class should have a three-parameter default constructor that allows the date to be set at the time a new Date object is created. If the user creates a Date object without passing any arguments, or if any of the values passed are invalid, the default values of 1, 1, 2001 (i.e, January 1, 2001) should be used. The class should have member functions to print the date in the following formats: 1/15/2016 January 15, 2016 15 January 2016

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter9: Using Classes And Objects
Section: Chapter Questions
Problem 9E
icon
Related questions
Question
100%
I JIO 4G|
20:46
VOLTE
You
Just now
8. Design a class called Date that has integer data members to store month, day, and
year.
The class should have a three-parameter default constructor that allows the date to be
set at the time a new Date object is created. If the user creates a Date object without
passing any arguments, or if any of the values passed are invalid, the default values of
1, 1, 2001 (i.e, January 1, 2001) should be used. The class should have member
functions to print the date in the following formats:
1/15/2016
January 15, 2016
15 January 2016
Transcribed Image Text:I JIO 4G| 20:46 VOLTE You Just now 8. Design a class called Date that has integer data members to store month, day, and year. The class should have a three-parameter default constructor that allows the date to be set at the time a new Date object is created. If the user creates a Date object without passing any arguments, or if any of the values passed are invalid, the default values of 1, 1, 2001 (i.e, January 1, 2001) should be used. The class should have member functions to print the date in the following formats: 1/15/2016 January 15, 2016 15 January 2016
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Class
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT