MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SOFTWARE ENGINEERING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Graphically a generalization relationship
A
is rendered as a solid line with a hollow arrowhead pointing to the parent
B
is rendered as a cross between a generalization and a dependencyrelationship
C
is rendered as a solid line, possibly directed, occasionally including a label, and oftencontaining other adornments, such as multiplicity and end names
D
is rendered as a dashed line, possibly directed, and occasionally including alabel.
Explanation: 

Detailed explanation-1: -Aggregation: It is a special kind of association, representing a structural relationship between a whole and its parts. Graphically, a generalization relationship is rendered as a solid line with a hollow arrowhead pointing to the parent.

Detailed explanation-2: -In a class diagram, realization relationship is rendered as a dashed directed line with an open arrowhead pointing to the interface.

Detailed explanation-3: -Inheritance. The inheritance relationship is shown in UML class diagrams using an open arrow from the subclass to the superclass. The open arrow signifies that the superclass is a generalization of the subclass.

Detailed explanation-4: -Generalization relationships are used in class, component, deployment, and use-case diagrams to indicate that the child receives all of the attributes, operations, and relationships that are defined in the parent. To comply with UML semantics, the model elements in a generalization relationship must be the same type.

Detailed explanation-5: -The UML class diagram maps out the object’s attributes, operations, and how they relate. The arrows that connect classes show important relationships. The arrows denote association, inheritance, aggregation, composition, dependency, and realization among others.

There is 1 question to complete.