Q:
public abstract class Shape {
private int x;
private int y;
public abstract void draw();
public void setAnchor(int x, int y) {
this.x = x;
this.y = y;
}
}
Which two classes use the Shape class correctly?
Answer & Explanation
Answer: B) public abstract class Circle extends Shape { private int radius; }
Explanation: Only B is true
View Answer
Report Error
Discuss