Page 1 of 1

Java Please: Create the AllDayEvent class, a subclass of the Event class to help you store an AllDayEvent. This will kee

Posted: Fri May 20, 2022 11:55 am
by answerhappygod
Java Please:
Create the AllDayEvent class, a
subclass of the Event class to help you
store an AllDayEvent.
This will keep the Event class
functionalities, with one exception:
The constructor will receive the following parameters:
date - String
format yyyy-MM-dd is the date when the
event occurs;
name - String representing the name of the
event;
When we call
method EventDuration returns 24.
When we call getStartDate method
returns the start date of the event -
at 00:00:00.

To solve this problem you can use any class
in java.util and java.text