a shape program that demonstrates the use of abstract class/methods…
Question Answered step-by-step a shape program that demonstrates the use of abstract class/methods… a shape program that demonstrates the use of abstract class/methods and the Strategy Design Pattern. Each shape has a name and should be able to calculate its area and perimeter. You need to model Circles, Rectangles, Squares, and Right Triangles.Each shape can also be displayed on the screen. However, the display algorithm needs to be swappable. Example: Suppose DisplayAlgoA displays an arbitrary shape as follows:{ name = xxxxx, area = xxxxxx, perimeter = xxxxxxx } DisplayAlgoB displays an arbitrary shape as follows: Shape:


