AP Computer Science Exam Practice 9
AP Computer Science Exam Practice 9
public Rectangle()
{
height = 1;
width = 1;
}
public Rectangle(int x)
{
height = x;
width = x;
}
(A) super();
(B) super(x);
(C) Rectangle(x);
(E) height = x;
width = x;
(A) I only
(B) II only
(C) I and II only
(D) I and III only
(E) I, II, and III
(A) A
(B) B
(C) AB
(D) BA
(E) Nothing is printed because the code does not compile.