Create (at least) one new class, DivisorCount. When the message DivisorCount new is executed (from the System Workspace), three new windows should open up on the screen:
- The first window should look like an IntegerCount window and be named "Master". The Master window will have working Increment, Decrement, and Reset buttons.
- The second and third windows have a display box like a Count window, but no buttons on them. One should be named "Odd" and the other "Even".
The Odd and Even windows are slaved to the Master window.
- Whenever the Master window displays an odd number during an increment operation, the count in the Odd window should increment by one. Whenever the Master window displays an even number during an increment operation, the count in the Even window should increment by one.
- Whenever the Master window displays an odd number during an decrement operation, the count in the Odd window should decrement by one. Whenever the Master window displays an even number during an decrement operation, the count in the Even window should decrement by one.
- Whenever the Master window is reset, both the Odd and Even windows should reset as well.
The assignment is due with a complete OOA and OOD, reuse notes, and code listing at class on Feb. 6. No late assignments will be accepted!
Some hints:
- You will probably create more than one new class.
- Do not modify the IntegerCount, Count, or Count view classes! Use subclassing and reuse!