Answered step by step
Verified Expert Solution
Question
1 Approved Answer
QUESTION FIVE 26 Marks. (a) A family of classes are being designed for representing University events. There will be an abstract class called UniEvent, and
QUESTION FIVE 26 Marks. (a) A family of classes are being designed for representing University events. There will be an abstract class called UniEvent, and an Interface called ISchedule. UniEvent will have all the expected constructors, accessors and mutators to support the following class fields: dateTime: A GregorianCalendar class object specifying the date and time of the event. unit: A String containing the name of the unit. In addition it has an abstract equals() method. This method imports an object of itself (UniEvent) and exports a boolean specifying whether or not the two events are equal. ISchedule will have two abstract methods: toString: imports nothing and exports the string representation of the object printAlert: imports nothing and exports nothing. You may assume for this question that the abstract class and interface have been completed and are available for your use. Design in pseudo code a class called ExtraEvent. This class inherits from both UniEvent and Schedule. This class is responsible for the following class fields: type: A String containing the type of event, and venue: A positive integer representing the room number, and duration: the duration as a real number representing the minutes and seconds. printAlert(): will print a schedule in the form: "You have a in for in
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started