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 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
The class hierarchy shown in your question indicates that a Triangle class is inheriting from a Rect... View full answer
Get step-by-step solutions from verified subject matter experts
