Language Fundamentals

© examsiri.com
Question : 8 of 24
 
Marks: +1, -0
Given:
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?
Go to Question: