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

16. (C) Segment I starts correctly but fails to initialize the additional private variables of the Rectangle class. Segment II is wrong because by using super with theTopLeft and theBotRight, it implies that these values are used in the Quadrilateral superclass. This is false—there isn’t even a constructor with three arguments in the superclass.


































































































   667   668   669   670   671