Question: Java programming problem; see below for the attached code for the program. ShapeHandler.java and the other is Shape.java. Requirements You are provided with the shape
Java programming problem; see below for the attached code for the program.

ShapeHandler.java and the other is Shape.java.

Requirements You are provided with the shape interface which is already complete Your first task is to create three implementations of Shape Tetrahedron (double edge) 6v2 Cone (double radius, height) SquarePyramid(double edge, double height) You can verify your classes work by creating a new class containing a main. Within the main you can instantiate objects of your Shape implementations. E.g Shape anew Tetrahedron (5); System.out.println(a. volumeO) Your second task is to use polymorphism to complete the two methods in the ShapeHandler class Finally, upload and submit the 5 classes . Shape . Tetrahedron . Cone SquarePyramid ShapeHandler 1 package op Shapes 1 package oap Shapes 8 public elas hapeHandler publie isterface Shape eturzs the sun of the voluses of the gaven shapes prbiic double volune pabiie static doble surfaceAeasun(ghape ) 19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
