Deck 26: ATM Case Study, Part 2: Implementing an Object-Oriented Design

Full screen (f)
exit full mode
Question
Which of the following is not true about declaring references to objects of other classes inside a class definition?

A) These references can be initialized inside the class definition.
B) Each reference only requires enough memory to store the memory address of the object it references.
C) If the class names for the other objects are used only to declare references, a forward declaration can be used to tell the compiler that the class name represents a type.
D) These references can represent directional associations from a UML class diagram.
Use Space or
up arrow
down arrow
to flip the card.
Question
Which attribute or behavior would we not factor out of the Pants and Socks classes and into the Clothing base class?

A) material
B) color
C) isClean
D) numberOfPockets
Question
Associations in a class diagram that have no navigability arrows at all indicate:

A) That the two classes are the same.
B) Inheritance from the same base class.
C) That navigation can proceed in either direction across the association.
D) That operations performed by this association do not return values.
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/3
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 26: ATM Case Study, Part 2: Implementing an Object-Oriented Design
Which of the following is not true about declaring references to objects of other classes inside a class definition?

A) These references can be initialized inside the class definition.
B) Each reference only requires enough memory to store the memory address of the object it references.
C) If the class names for the other objects are used only to declare references, a forward declaration can be used to tell the compiler that the class name represents a type.
D) These references can represent directional associations from a UML class diagram.
A
Which attribute or behavior would we not factor out of the Pants and Socks classes and into the Clothing base class?

A) material
B) color
C) isClean
D) numberOfPockets
D
Associations in a class diagram that have no navigability arrows at all indicate:

A) That the two classes are the same.
B) Inheritance from the same base class.
C) That navigation can proceed in either direction across the association.
D) That operations performed by this association do not return values.
C
locked card icon
Unlock Deck
Unlock for access to all 3 flashcards in this deck.