At Westonci.ca, we make it easy for you to get the answers you need from a community of knowledgeable individuals. Join our platform to connect with experts ready to provide detailed answers to your questions in various areas. Get precise and detailed answers to your questions from a knowledgeable community of experts on our Q&A platform.

Implement a class Clock whose getHours and getMinutes methods return the current time at your location. (Call java.util.Date().toString() and extract the time from that string.) Also provide a getTime method that returns a string with the hours and minutes by calling the getHours and getMinutes methods. Provide a subclass WorldClock whose constructor accepts a time offset. For example, if you live in California, a new WorldClock(3) should show the time in New York, three time zones ahead. Which methods did you override? (You should not override getTime.). Add an alarm feature to the Clock class. When setAlarm(hours, minutes) is called, the clock stores the alarm. When you call getTime, and the alarm time has been reached or exceeded, return the time followed by the string "Alarm" and clear the alarm.