Answer (Choose 1 answer)
Which code can be used to create and initialize an object of class Circle?
class Shape { }
class Circle extends Shape {
private String color;
public Circle(String color) { this.color = color;}
}
A. Circle circle = new Circle();
B. Circle circle = new Circle("Green");
C. Circle circle = new Shape();
D. Circle circle = new Shape("Green");