diff options
Diffstat (limited to 'csci1913')
-rw-r--r-- | csci1913/Java/lab6/lab6_strap012.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/csci1913/Java/lab6/lab6_strap012.java b/csci1913/Java/lab6/lab6_strap012.java index e2c96e4..feecbe1 100644 --- a/csci1913/Java/lab6/lab6_strap012.java +++ b/csci1913/Java/lab6/lab6_strap012.java @@ -9,11 +9,11 @@ class Rectangle extends Polygon { } } -class Square extends Polygon { +class Square extends Rectangle { public Square(int l) { - super(4, l, l, l, l); - } - public int area() { - return this.side(0)*this.side(1); + super( l, l); } + // public int area() { + // return this.side(0)*this.side(1); + // } }
\ No newline at end of file |