Deck 26: ATM Case Study, Part 2: Implementing an Object-Oriented Design
سؤال
سؤال
سؤال
فتح الحزمة
قم بالتسجيل لفتح البطاقات في هذه المجموعة!
Unlock Deck
Unlock Deck
1/3
العب
ملء الشاشة (f)
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) 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
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.
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