public abstract class Shape { <br /> int x; <br /> int y; <br /> public abstract void draw(); <br /> public void setAnchor(int x, int y) { <br /> this.x = x; <br /> this.y = y; <br /> } <br /> } <br /> and a class Circle that extends and fully implements the Shape class. Which is correct?() <p> public abstract class Shape { <br /> int x; <br /> int y; <br /> public abstract void draw(); <br /> public void setAnchor(int x, int y) { <br /> this.x = x; <br /> this.y = y; <br /> } <br /> } <br /> and a class Circle that extends and fully implements the Shape class. Which is&ens
A、A. Shape s = new Shape(); s.setAnchor(10,10); s.draw();
B、B. Circle c = new Shape(); c.setAnchor(10,10); c.draw();
C、C. Shape s = new Circle(); s.setAnchor(10,10); s.draw();
D、D. Shape s = new Circle(); s->setAnchor(10,10); s->draw();
E、E. Circle c = new Circle(); c.Shape.setAnchor(10,10); c.Shape.draw();