Coding design question

I was interviewed recently & asked this question.

Design MS Paint using Object Oriented Design. I answered by starting with different classes for Canvas, PaintBrush, Zoom and then a MSPaint class. In MSPaint class, I used composition for Canvas, PaintBrush and Zoom class. It looks like the interviewer was not happy with the answer. Can someone please help me out on what to answer for such questions?
It looks like the interviewer was not happy with the answer.

Maybe they were happy?
I don't about that, but can someone please answer my actual question?
Zoom should inherit from Canvas. (Zoom is a view of the canvas.)

Canvas does not need a PaintBrush class. They can be aware of each other/used by each other, but you should avoid building megaclasses.

???
(I am not a prospective employee interviewer. But you should google around "model-view-controller" architecture, which is a very good application of OOP design.)
Topic archived. No new replies allowed.