Commit 0e1ab369 authored by a-j.towse's avatar a-j.towse
parents a638154f 6c07dbfb
No preview for this file type
No preview for this file type
No preview for this file type
...@@ -5,8 +5,11 @@ public class App { ...@@ -5,8 +5,11 @@ public class App {
Shape shape2 = new Square(3); Shape shape2 = new Square(3);
shape2.draw(); shape2.draw();
<<<<<<< HEAD
Shape shape3 = new Rectangle(5,7); Shape shape3 = new Rectangle(5,7);
shape3.draw(); shape3.draw();
=======
>>>>>>> 6c07dbfb68ad5b5ceab794cbb90d1b5c17473575
} }
} }
...@@ -22,6 +22,7 @@ public class Rectangle extends Shape{ ...@@ -22,6 +22,7 @@ public class Rectangle extends Shape{
float circ = (width*2) + (height*2); float circ = (width*2) + (height*2);
return circ; return circ;
} }
<<<<<<< HEAD
@Override @Override
public void draw(){ public void draw(){
...@@ -42,4 +43,11 @@ public class Rectangle extends Shape{ ...@@ -42,4 +43,11 @@ public class Rectangle extends Shape{
} }
System.out.println(""); System.out.println("");
} }
=======
@Override
public void draw(){
}
>>>>>>> 6c07dbfb68ad5b5ceab794cbb90d1b5c17473575
} }
...@@ -34,7 +34,10 @@ public class Square extends Shape{ ...@@ -34,7 +34,10 @@ public class Square extends Shape{
for (int loop4=0; loop4<size; loop4++){ for (int loop4=0; loop4<size; loop4++){
System.out.print("--"); System.out.print("--");
} }
<<<<<<< HEAD
System.out.println(""); System.out.println("");
=======
>>>>>>> 6c07dbfb68ad5b5ceab794cbb90d1b5c17473575
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment