Podcast
Questions and Answers
In class dependency, when is a class considered to have a dependency on another class?
In class dependency, when is a class considered to have a dependency on another class?
- ClassTwo uses objects of ClassOne.
- The public interfaces of both classes are cohesive.
- ClassOne uses objects of ClassTwo.
- Each class uses objects of the other. (correct)
In a class relationship diagram, what does it mean when one class aggregates another?
In a class relationship diagram, what does it mean when one class aggregates another?
- Coin class depends on CashRegister class
- CashRegister class depends on Coin class
- Coin class inherits from CashRegister class.
- CashRegister class aggregates Coin class. (correct)
Which statement correctly describes the inheritance relationship between SailBoat and Catamaran classes?
Which statement correctly describes the inheritance relationship between SailBoat and Catamaran classes?
- SailBoat inherits from Vessel.
- Catamaran depends on SailBoat.
- Catamaran inherits from Sailboat. (correct)
- Catamaran inherits from Vessel.
In a class relationship diagram, what does it mean when one class depends on another?
In a class relationship diagram, what does it mean when one class depends on another?
What type of relationship is shown between Invoice and LineItem in the given diagram?
What type of relationship is shown between Invoice and LineItem in the given diagram?