Complete section 9.2 in your Guided Notes.
Use CodeHS Sandbox to code the following AP CSA MCQs.
(A) The Bird variable b is instantiated as a Hawk. The instance variable talonStrength is initialized with the value from the parameter talon. The Hawk constructor cannot set the instance variable beakStrength because a subclass does not have access to a private variable in its superclass.
(B) The Bird variable b is instantiated as a Hawk. The call super(beak) returns a value from the instance variable beakStrength in the superclass and makes it accessible in the subclass. The instance variable talonStrength is then initialized with the value from the parameter talon.
(C) The Bird variable b is instantiated as a Hawk. The instance variable talonStrength is initialized with the value from the parameter talon. No other initializations are made to any instance variables.
(D) The Bird variable b is instantiated as a Hawk. The call super(beak) invokes the Bird constructor and initializes the instance variable beakStrength with the value from the parameter beak. The instance variable talonStrength is then initialized with the value from the parameter talon.
(E) The code segment will not execute because the Bird variable b cannot be instantiated as a Hawk.
In My AP Class, complete 🌱 Practice Check 9.2
Complete exercise 9.2.9 Clothing Store
a. Click on the Understanding Map
b. Select a Thinking Move you are interested in developing.
c. Select and complete a thinking routine to push your ideas in new directions.