+1 vote
in Software Architecture by (75.2k points)
Heuristic for Class models include which of these?

(a) Use inheritance only when there is a generalization relationship between the sub-class and its super-class(es)

(b) Combine common attributes and operations in similar classes into a common super-class

(c) All of the mentioned

(d) None of the mentioned

This question was addressed to me during an interview.

Asked question is from Static Modelling Heuristics topic in chapter Unified Modelling Language of Software Architecture

1 Answer

0 votes
by (46.2k points)
Correct choice is (a) Use inheritance only when there is a generalization relationship between the sub-class and its super-class(es)

The best explanation: Heuristic for Class models includes- Use inheritance only when there is a generalization relationship between the sub-class and its super-class(es).

Related questions

We welcome you to Carrieradda QnA with open heart. Our small community of enthusiastic learners are very helpful and supportive. Here on this platform you can ask questions and receive answers from other members of the community. We also monitor posted questions and answers periodically to maintain the quality and integrity of the platform. Hope you will join our beautiful community
...