[SOLVED] SOLVED:HW01-3: Date Class

15.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (2 votes)

Create a class called `Date` that includes three pieces of information as automatic properties—a month (type `int`), a day (type `int`) and a year (type `int`). Your class should have a constructor that initializes the three automatic properties and assumes that the values provided are correct. Provide a method `DisplayDate` that displays the month, day and year separated by forward slashes (/). Write a test app named `DateTest` that demonstrates class `Date`’s capabilities.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.