Page 47 - AP Computer Science A, 7th edition
P. 47

I super(theLabels);
II super(theLabels, theTopLeft, theBotRight);
III super(theLabels); topLeft = theTopLeft; botRight = theBotRight;
(A) Ionly
(B) IIonly
(C) IIIonly
(D) IandIIonly (E) IIandIIIonly
17. Refer to the Parallelogram and Square classes below.
public class Parallelogram extends Quadrilateral {
//Private instance variables and constructor are not shown.
...
public int perimeter()
{ /∗ implementation not shown ∗/ }
public int area()
{ /∗ implementation not shown ∗/ }
}
public class Square extends Rectangle {
//Private instance variables and constructor are not shown.
...
public int perimeter()
{ /∗ implementation not shown ∗/ }
public int area()













































































   45   46   47   48   49