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

ملء الشاشة (f)
exit full mode
سؤال
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.
استخدم زر المسافة أو
up arrow
down arrow
لقلب البطاقة.
سؤال
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
سؤال
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
Unlock Deck
1/3
auto play flashcards
العب
simple tutorial
ملء الشاشة (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
فتح الحزمة
افتح القفل للوصول البطاقات البالغ عددها 3 في هذه المجموعة.