COP 2210Practice Final Exam (Latest Version) Score, 152.19 out of 200.25
Score for this attempt: 152.19 out of 200.25 Submitted Apr 15 at 2:10pm This attempt took 35 minutes. The subclass must simply use the name of the superclass instance variable. You Answered The subclass must declare its own instance variable with the same name as the superclass instance variable. Correct Answer The subclass must use a public method of the superclass (if it exists) to update the superclass's private instance variable. The subclass must have its own public method to update the superclass's private instance variable. Question 2 2.67 / 2.67 pts In designing an inheritance hierarchy it is helpful first to list classes that are part of the hierarchy and then organize those classes via an inheritance diagram. Once this has been done, what is the next step in the design? Correct! Determine common responsibilities among the classes. Decide which methods should be overridden. Declare the public interface of each class. Define and implement constructors and methods.
Geschreven voor
- Instelling
- Florida International University
- Vak
- COP 2210
Documentinformatie
- Geüpload op
- 22 november 2021
- Aantal pagina's
- 41
- Geschreven in
- 2021/2022
- Type
- Tentamen (uitwerkingen)
- Bevat
- Vragen en antwoorden
Onderwerpen
-
cop 2210
-
cop 2210practice final
-
cop 2210 practice final