In the class which models a student, which : 2043783
In the class which models a student, which of these is an attribute?
In the class which models a bird, which of the following is a capability?
In the class which models a house, which of the following is a component?
In the class which models a cat, which of the following is a peer object?
In Java, which of the following is the correct way to declare the property _myHat in class Snowman, given that _myHat is an instance of the Hat class?
- private Hat _myHat;
- private _myHat Hat;
- Hat _myHat;
- _myHat Hat;
Which of the following is not a technique for managing complexity?
- parts hierarchies or component hierarchies
- appropriate laziness
Which of the following is not a shape provided in the Wheels library?
Names that you choose for your classes, properties, and capabilities are called:
Answer. B. The names of classes, properties, and capabilities are called identifiers.
The purpose of the constructor is:
- to give the instance being created its capabilities.
- to initialize the instance variable's properties.
- to generate a name for the instance variable.
- to do all of the above tasks.
Capabilities are implemented in Java using:
- instance variables
5 (1 Ratings )
SolvedComputer Science 3 Years Ago 233 Views