Implement all the classes using Java programming language from the given UML Class diagram. Note: This problem requires you to submit only one class: Date.java. Do NOT include "public static void main()" method inside all of these classes. The class would be tested, using the unit-testing framework JUnit 4.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter12: Exception Handling
Section: Chapter Questions
Problem 8PE
icon
Related questions
Question
Implement all the classes using Java programming language from the given UML Class diagram.

Note: This problem requires you to submit only one class: Date.java.

Do NOT include "public static void main()" method inside all of these classes. The class would be tested, using the unit-testing framework JUnit 4.

Date
day = [1, 31]
month
-day:int
[1, 12]
-month:int
year = [1900, 9999]
No input validation needed.
-year:int
+Date (day:int, month:int,year:int)
+getDay():int
+getMonth():int
+getYear ():int
+setDay (day:int):void
+setMonth(month:int):void
+setYear(year:int):void
+setDate(day:int,month:int,year:int):void
+toString():String
"dd/mm/yyyy" with leading zero
Transcribed Image Text:Date day = [1, 31] month -day:int [1, 12] -month:int year = [1900, 9999] No input validation needed. -year:int +Date (day:int, month:int,year:int) +getDay():int +getMonth():int +getYear ():int +setDay (day:int):void +setMonth(month:int):void +setYear(year:int):void +setDate(day:int,month:int,year:int):void +toString():String "dd/mm/yyyy" with leading zero
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Developing computer interface
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
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,