1.

What type of relationship is represented by Shape class and Square ?(a) Realization(b) Generalization(c) Aggregation(d) DependencyThis question was addressed to me by my school teacher while I was bunking the class.My question is from Diagrams in UML topic in chapter Design and Implementation of Software Engineering

Answer»

Correct OPTION is (b) Generalization

To explain: The generalization RELATIONSHIP is also KNOWN as the inheritance relationship. In the figure SQUARE is the subclass of superclass SHAPE.



Discussion

No Comment Found

Related InterviewSolutions