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
Java Please: Create the AllDayEvent class, a subclass of the Event class to help you store an AllDayEvent. This will kee
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am