diff options
author | Matthew Strapp <msattr@gmail.com> | 2019-11-11 09:58:23 -0600 |
---|---|---|
committer | Matthew Strapp <msattr@gmail.com> | 2019-11-11 09:58:23 -0600 |
commit | 26465bdfcdf41a1c374009e21ee7d36752375602 (patch) | |
tree | 27777276c7b0bc674c6427974decf6f2fe69f40f /csci1913 | |
parent | Fix old debug klu(d)ge (diff) | |
download | homework-26465bdfcdf41a1c374009e21ee7d36752375602.tar homework-26465bdfcdf41a1c374009e21ee7d36752375602.tar.gz homework-26465bdfcdf41a1c374009e21ee7d36752375602.tar.bz2 homework-26465bdfcdf41a1c374009e21ee7d36752375602.tar.lz homework-26465bdfcdf41a1c374009e21ee7d36752375602.tar.xz homework-26465bdfcdf41a1c374009e21ee7d36752375602.tar.zst homework-26465bdfcdf41a1c374009e21ee7d36752375602.zip |
Fix lab 6
Diffstat (limited to '')
-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 |