Find Us On: Facebook Twitter Rss Feed Blog
Need To Register? Sign Up Login

Java Beginner

Heron
Heron 


Design and implement a Java class to represent a 3-D geomtetric shape of your choice. The class should contain a constructor, appropriate data fields and methods to return the volume of the shape, and the surface area of the shape and any other methods that seem to make sense for you shape. Name your Java file Yournamehw4.java. Create a Java Test Application to construct your shape and demonstrate the successful call to its methods. Document in a word document the results of running your application. Attachments
Tags
Clarifications

Answers

Answer

mariobeka
mariobeka 



Here you'll find the 3d geometric shape class and the test class Attachments
Result.txt (1 K) Download Preview
is 8 Second Rectangle's volume is

Yournamehw4.java (1 K) Download Preview
= new Rectangle(1,4,2); Rectangle shape2 = new Rectangle(); System.out.print(shape1); System.out.print("\nSecond

Rectangle.java (1 K) Download Preview
} public void setLength(int length) { this.length = length; } public int getWidth() { return width; } public void setWidth(int width) { this.width = width; } public int getHeight() { return height; } public void setHeight(int height) { this.height =

Screenshots
Purchase Answer