Skip to content

Question 3.01 #12

Open
Open
@allenbangai

Description

@allenbangai

Create a class called Date that includes three instance variables—a month (type int), a day (type int) and a year (type int). Provide a constructor that initializes the three instance variables and assumes that the values provided are correct. Provide a set and a get method for each instance variable. 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.
Make sure you understand the basics of object oriented programming before solving this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficult01Level of difficulty is of level very easygood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions