From 26465bdfcdf41a1c374009e21ee7d36752375602 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Mon, 11 Nov 2019 09:58:23 -0600 Subject: Fix lab 6 --- csci1913/Java/lab6/lab6_strap012.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'csci1913') 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 -- cgit v1.2.3