Course Solutions Uncategorized (Solved) : Part 2 Alarm Part Adding New Class Alarm Use Clockdisplay12 Class Turn Uses Numberdisplay Q34327362 . . . .

(Solved) : Part 2 Alarm Part Adding New Class Alarm Use Clockdisplay12 Class Turn Uses Numberdisplay Q34327362 . . . .

 

Part 2 – An Alarm

• In this part you are adding a new class Alarm thatwill use your ClockDisplay12 class, which in turn usesNumberDisplay.

You will not be changing ClockDisplay12 orNumberDisplay, just adding Alarm.

• An Alarm object is made up of a ClockDisplay12 objectand a boolean flag indicating whether or not the alarm is set (truemeans it is set; false means it isn’t set).

• The Alarm class has the following methods:

o A default constructor (no parameters) that sets the clock tomidnight and the alarm off.

o A constructor with 4 parameters: The hours, minutes, Stringfor am or pm, and a boolean

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post