subject

Using an inheritance hierarchy, design a Java program to model 3-dimensional shapes (square pyramid, sphere,
rectangular prism, cube, cylinder, circular cone). Make a top level shape class with methods for getting the area
and the volume. Next, build classes and subclasses for the above 3dimensional shapes with functionality to
calculate area and volume. Make sure that you place common behavior in superclasses whenever possible. Also,
use abstract classes as appropriate. Add methods to subclasses to represent unique behavior particular to each 3-
dimensional shape. Write the definitions of these classes and a test program showing them in use.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 11:00
How does a policy manual an organization? a. it boost productivity. b. it create awareness in employees about the organization’s values. c. it employees achieve targets. d. it safeguards the organization from liabilities.
Answers: 1
question
Computers and Technology, 22.06.2019 19:20
Terri needs to insert a cover page into her document. where should she go to access the commands to do so? o insert tab, objects group o insert tab, illustrations group o insert tab, pages group o insert tab, media group submit
Answers: 1
question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 23.06.2019 11:20
Http is the protocol that governs communications between web servers and web clients (i.e. browsers). part of the protocol includes a status code returned by the server to tell the browser the status of its most recent page request. some of the codes and their meanings are listed below: 200, ok (fulfilled)403, forbidden404, not found500, server errorgiven an int variable status, write a switch statement that prints out the appropriate label from the above list based on status.
Answers: 2
You know the right answer?
Using an inheritance hierarchy, design a Java program to model 3-dimensional shapes (square pyramid,...
Questions
Questions on the website: 13722360