Class Quiz 3

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

How does a UML diagram denote a multiplicity of one or more in an aggregation relationship?

1..*

A CRC card describes ____.

A class, its responsibilities, and its collaborating classes.

What does this diagram indicate about the relationship between the customers and bank accounts? Customer<>------1..* BankAccount

A customer may have one or more bank accounts

Which statement correctly describes the class relationship shown in this diagram? Car-------->Vehicle

Car class inherits from Vehicle class.

Which statement correctly describes the class relationship shown in this diagram? CashRegister - - - - -> Coin

CashRegister class depends on Coin class

public class SailBoat extends Vessel { . . . } public class Catamaran extends SailBoat { . . . }

Catamaran depends on SailBoat

A class (ClassOne) is considered to have a dependency on another class (ClassTwo) under which of the following conditions?

ClassOne uses objects of ClassTwo.

public class Motorcycle { private Tire[] tires; . . . } Which of the following statements correctly describes the relationship between the Motorcycle and Tire classes?

Motorcycle exhibits the has-a relationship with regards to Tire.

Which statement correctly describes the class relationship shown in this diagram? Quiz<>------Question

Quiz class aggregates Question class.

public class Motorcycle extends Vehicle { private Tire[] tires; private Engine anEngine; . . . } Which of the following statements describing relationships between the Motorcycle, Tire, Engine and Vehicle classes is NOT correct?

Vehicle exhibits the has-a relationship with regards to Motorcycle.

Which of the following code snippets denotes that the Kitchen class aggregates the Dish class?

public class Kitchen { private Dish dish; }

Which of the following code snippets denotes that the Purse class depends on the Wallet class?

public class Purse { private void setWallet(Wallet aWallet) {}; }


संबंधित स्टडी सेट्स

NE - Configuring Cisco Devices - CLI

View Set