Object Oriented Programming (OOPs)

© examsiri.com
Question : 42 of 72
 
Marks: +1, -0
Given:
1. public abstract class Shape {
2.   int x;
3.   int y;
4.   public abstract void draw();
5.   public void setAnchor(int x, int y) {
6.    this.x = x;
7.    this.y = y;
8.  }
9. }

and a class Circle that extends and fully implements the Shape class.
Which is correct?
Go to Question: