Computer Science, asked by tooba832456, 5 months ago

Your program will consist of the following classes: Shape, Circle, Square, Cube, Sphere, Cylinder, and Glome and two interfaces Area and Volume (Area.java and Volume.java are given below).
Your classes may only have the class variable specified in the table below and the methods defined in the two interfaces Area and Volume. You will implement the methods specified in the Area and Volume interfaces and have them return the appropriate value for each shape. Class Shape will have a single public method called getName that returns a string.
Class Class Variable Constructor Extends Implements Shape String name Shape() Circle double radius Circle( double r, String n ) Shape Area Square double side Square( double s, String n ) Shape Area Cylinder double height Cylinder(double h, double r, String n ) Circle Volume Sphere None Sphere( double r, String n ) Circle Volume Cube None Cube( double s, String n ) Square Volume Glome None Glome( double r, String n ) Sphere Volume

Answers

Answered by priyaugale2610
7

Mark me as brainliest I will also mark you

Similar questions