Lecture 14
14
Constructors in a subclass
64
Line hline = new HLine( 10, x);
invokes HLine constructor
20 public HLine( int length, char paintChar )
21 {
22
super( length, paintChar );
23 }
line 22: invokes
parent class
(Line) constructor
(java keyword
super
is my parent)