Question: Briefly explain if the class hierarchy below goes against any design principles and suggest a better hierarchy (explain why it's better). You can use

Briefly explain if the class hierarchy below goes against any design principles

Briefly explain if the class hierarchy below goes against any design principles and suggest a better hierarchy (explain why it's better). You can use UML to depict your suggested hierarchy. [8 Marks] Tsual Paradlight Standard Que Rectangley of Londan) -sideA : int -sideB int -sideC: int -sideD: int +Rectangle(sideA: int, sideB int, sideC: int, sideD : int) +getA(): int +getB(): int +getC(): int +getD(): int Triangle +Triangle(sideA int, sideB: int, sideC: int)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The class hierarchy shown in your question indicates that a Triangle class is inheriting from a Rect... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!