MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

SOFTWARE ENGINEERING

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
If a “student signs up for a class, “ which type of relationship would you use to model the relationship between the two?
A
generalization
B
specialization
C
aggregation
D
association
Explanation: 

Detailed explanation-1: -Association relationships are used for the relationship between instances of two classes when the relationship is not specific enough to be considered a generalization or an aggregation relationship.

Detailed explanation-2: -These four types of associations-performance, sociable, symbolic (or ideological), and productive-are quite distinct species of social organization, and each represents a distinct form of social integration.

Detailed explanation-3: -Explanation: There are basically four types of class relationships namely Inheritance, Aggregation, Composition and Association relationships between classes.

Detailed explanation-4: -Inheritance is “IS-A” type of relationship. “IS-A” relationship is a totally based on Inheritance, which can be of two types Class Inheritance or Interface Inheritance. Inheritance is a parent-child relationship where we create a new class by using existing class code.

There is 1 question to complete.