Question: Create a jave code that Performs the following: Interfaces: Define two interfaces, Shape and Resize. Shape has methods for drawing a shape and calculating its
Create a jave code that Performs the following:
Interfaces: Define two interfaces, Shape and Resize. Shape has methods for drawing a shape and calculating its area, while Resize defines a method to resize the shape.
Implementation: The Triangle class should implement both interfaces. It provides the implementations for draw getArea and resize methods specific to a Triangle.
TriangleDriver Class: The TriangleDriver class demonstrates the usage of the Triangle class. It creates a Triangle object, draws it calculates its area, then resizes it and repeats the process.
Deliverables:
Upload your working Java file in this assignment submission box. ie your Triangle.java and TriangleDriver.java filesNOTE: I need the actual java files that I can compile and run!
Upload screenshots of your output. See sample output attached
Make sure it prints out the expected output for the java code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
