Lecture 14
Shapes in hw7
abstract
class Line: fields and methods for lines (length, getLength,
setLength)
abstract
class Rectangle - fields and methods for rectangles
(length, width)
abstract
class Shape: fields and methods needed by all child classes
(paintChar, getter and setter, paintOn(Screen))
class HLine extends XLine
class XLine extends Shape
class
HLine: paintOn(Screen,int,int)
class
VLine: paintOn(Screen,int,int)
class Object
class Box
class Frame
class Shape // extends Object