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?
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? Correct Answer public abstract class Circle extends Shape { private int radius; }
Only B is true
মোঃ আরিফুল ইসলাম
Feb 20, 2025