This commit is contained in:
parent
0711f71b4d
commit
504ce3feaf
|
|
@ -1,6 +1,6 @@
|
||||||
package java;
|
package java;
|
||||||
|
|
||||||
//public class Circle {
|
|
||||||
public class Circle extends Shape implements Drawing {
|
public class Circle extends Shape implements Drawing {
|
||||||
|
|
||||||
protected int r;
|
protected int r;
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
package java;
|
|
||||||
|
|
||||||
import a.Circle;
|
|
||||||
|
|
||||||
public class Scatchbook {
|
public class Scatchbook {
|
||||||
private String name;
|
private String name;
|
||||||
|
|
@ -18,8 +15,8 @@ public class Scatchbook {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
}
|
||||||
public void draw(){
|
public void draw(){
|
||||||
for(Drawing d : drawList) System.out.println(d.draw());
|
for(Drawing d : drawList) System.out.println(d.draw());
|
||||||
}
|
}
|
||||||
|
|
@ -36,4 +33,3 @@ public class Scatchbook {
|
||||||
scatchbook.draw();
|
scatchbook.draw();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue