click below
click below
Normal Size Small Size show me how
SCJA-drills-chap09
Question | Answer |
---|---|
How are concrete classes modeled in UML? | Concrete classes are modeled as a boldface name in a rectangular box. |
How are abstract classes modeled in UML? | Abstract classes are modeled as a boldface italicized name in a rectangular box. |
How are interfaces modeled in UML? | Interfaces are modeled as a boldface name, prefaced by the stereotype word interface enclosed in guillemet characters (<<interface>>). |
Define "generalization". | Generalization is the concept of inheriting a class. |
How can generalization be represented if ClassB inheritates from ClassA? | Generalization can be represented as ClassB extends ClassA, as well as ClassB is-a ClassA. |
How is the generalization's graphic path modeled in UML? | Generalization’s graphic path is a solid line and a closed arrowhead. |
Define "realization". | Realization is the concept of implementing an interface. |
How can generalization be represented if ClassB "inheritates" from InterfaceA? | Realization can be represented as ClassB implements InterfaceA. |
How is the realization's graphic path modeled in UML? | Realization’s graphic path is depicted with a dotted line and a closed arrowhead or with the lollipop element and interface name. |
What are the characteristics of attributes compartment? | The attributes compartment is optional and extends off of the name compartment of the class diagram. It houses the member variables, also known as the state of the system. |
What is the SCJA condensed usage for individual member variables within the attributes compartment? | The SCJA condensed usage for individual member variables within the attributes compartment is: [<visibility>] <name> [: <type>] |
What are the characteristics of operations compartment? | The operations compartment is optional and extends off of the bottom of the class box and is below the attributes compartment if it is present. It houses the member functions, also known as the methods. |
What is the SCJA condensed usage for individual member variables within the operations compartment? | The SCJA condensed usage for individual member functions within the operations compartment is: [<visibility>] <name> [<parameter-list>] [: <return-type>] |
How many visibility indicators are used to represent access modifiers in UML? Which ones? | Four visibility indicators are used to represent access modifiers in UML: +, -, #, ~. |
Which symbol is used to represent the public access modifier? | The plus sign (+) is used to represent the public access modifier. |
Which symbol is used to represent the private access modifier? | The minus sign (-) is used to represent the private access modifier. |
Which symbol is used to represent the protected access modifier? | The pound sign (#) is used to represent the protected access modifier. |
Which symbol is used to represent the package-private default modifier? | The tilde sign (~) is used to represent the package-private default modifier. |
What does the plus sign (+) represent in UML? | The plus sign (+) is used to represent the public access modifier. |
What does the minus sign (-) represent in UML? | The minus sign (-) is used to represent the private access modifier. |
What does the pound sign (#) represent in UML? | The pound sign (#) is used to represent the protected access modifier. |
What the the tilde sign (~) represent in UML? | The tilde sign (~) is used to represent the package-private default modifier. |
Which visibility indicators are on the SCJA test? | Only the public and private visibility indicators are on the test. |
What does the directed association class relationship does in UML associations? | The directed association class relationship depicts the services of another class, as well as defining its destination class. |
What does the association class relationship does in UML associations? | The association class relationship depicts the knowledge or services of another class. |
What does the composition class relationship does in UML associations? | The composition association class relationship depicts a class that is composed of one or more classes. The component parts/classes only live as long as the composite class. |
How is composition association represented in UML? | Composition association is represented with a solid line and a filled diamond. |
What does the aggregation association class relationship does in UML associations? | The aggregation association class relationship depicts one class as the owner over one or more classes. |
How is aggregation association represented in UML? | Aggregation association is represented with a solid line and an unfilled diamond. |
What does the dependency association class relationship does in UML associations? | The dependency association class relationship depicts one class having a temporary association with another class. |
How is navigation indicator denoted in UML? | The navigation indicator is denoted by a stick arrowhead attached to the end of the association. |
What are multiplicity indicators used for in UML? | Multiplicity indicators are used to represent the number of objects that can be present in an association. |
What do multiplicity indicator representations include in UML? | Multiplicity indicator representations include *, 0, 0..* , 0..1, 0..[x], 1, 1..*, 1..[x], [x]..[y], and [x]. |
What are association role names used for in UML? | Association role names are used to provide further clarification of class relationships. |