Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Java please, thank you in advance : ) Your practice: 1. Create a parent class named Time with at least 3 private members of

Use Java please, thank you in advance : )

image text in transcribed

Your practice: 1. Create a parent class named Time with at least 3 private members of int date type: hour, minute, and second. You should use the calendar to setup its hour, minutes, and second. 2. Create a test class to printout your current hour, minute, and second. 3. Create a child Course Time with six private members, int length Ofos, int OSStartHour, int length Of Security, int SecurityStartHour, int length OfForensics, int ForensicsStartHour, and 6 public get/set methods to manipulate them. The length of each course could be in hour. For example, OS's course time is 14:00 - 16:00 in 24 hour format, the value of length ofos is 2 while OSStartHour is 14. 4. Printout the class time for each of the three courses(e.g., os, security, forensis) in the test class. 5. Then, you need to write a method in the Course Time class to determine if current time is course time and determine which Course (os, security, forenscis) you should be in. Printout the results to see which class you should be in right now

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Databases Organizing Information Digital And Information Literacy

Authors: Greg Roza

1st Edition

1448805929, 978-1448805921

More Books

Students also viewed these Databases questions

Question

How do the charges on opposing plates of a capacitor compare?

Answered: 1 week ago