Question: Using the Java Naming conventions, create the following(in the to-do list): This entire soft ware package is the product of shapely figures, whose website is

 Using the Java Naming conventions, create the following(in the "to-do" list):

Using the Java Naming conventions, create the following(in the "to-do" list): This entire soft ware package is the product of shapely figures, whose website is located at www.shapelyfigures.net. This should be reflected in the overall package collection. In addition, the software development team needs the package to contain the following TO- DO Given Class: Parallelepiped-a class for parallelepipeds Class: RectPrism rectangular prism class Interface: RectPrismGeom geometric API Class: PrismUser -main class using prism objects A class called"cube" (1) (1) The class for cubes has its methods call corresponding methods of the superclass, i.e., its constructor calls its parent's constructor; and its sides' measurement can be written or read from its parent's accessor/mutator methods (any one pair would do, but we should be consistent) public class Cube extends RectPrism implements CubeGeonm Constructor Detail o public Cube(Double s) o Default constructor calls superclass for initialization. o Parameters: s the length of every side of the cube. Method Detail public Double getSidet0 o o Retrieves the length of every side. Returns: the length returned by superclass' implementation. o o public Parallelepiped setSide(Double s) o Assign the length of each side of the cube. o Parameters: s the value to be set; the length of the cube's side. o Returns: a reference to the current object for method chaining. (class RectPrism) package com.majorityof1.www.geometry.hierarchy.shape3d public class RectPrism extends Parallelepiped implements RectPrismGeomf public RectPrism(Double I, Double w, Double h setLengthl); setWidth(w); seteight);) public RectPrism setLength(Double l lengthl return this; ) public RectPrism setHeight (Double h) height h retum this; public RectPrism setWidth(Double w) widthw; retum this; public Double getLength() return length; public Double getHeight) return height; public Double getWidth) return width; )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!