Lecture 14
8
Design problem
•HLine and VLine each have length, paintChar, with setters and getters •Each kind of line has a paintOn method to paint itself on a Screen in its own particular way •When you wrote VLine you started with a copy of HLine, and changed a small fraction of the code
•Is there a better way?
•Yes