





Issues to be considered
Issues to be considered


| Class name: | Apple |
| Instance properties (instance fields): | color, weight |
| Class properties (class fields): | count, weight |
| Constructor: | adds an apple of specified color and weight, and adjusts the class fields |
| Methods: | |
| Instance locators (instance handlers): | apple 1, apple 2 |
| Instance states: | state(apple 1)=(green, 0.25 pound), state(apple 2)=(red, 0.3 pound) |
| Class state: | (2, 0.55 pound) |

| Class name: | Clock |
| Instance properties (instance fields): | hours, minutes, seconds |
| Class properties (class fields): |
|
| Constructor: | adds a clock set to the requested time |
| Instance functions (methods): |
|
| Class functions (methods): | show average (of min and max) time |
| Instance locators (instance handlers): | early, late |
| Instance states: | state(early) = 3:00:00, state(late) = 5:45:22 |
| Class state: | state = (3:00:00, 5:45:22) |
Due: Mo, Apr 21, midnight
Write a report which offers a class of objects of your liking and shows the following features.
Assume ‘lab7’ for the submit program.