Create class diagram for abstract class shape

Assignment Help Basic Computer Science
Reference no: EM131303633

Create class diagrams to show the relationship between classes in the given Shape hierarchy as shown in the figure above. Each TwoDimensionalShape should contain method getArea to calculate the area of the two-dimensional shape. Each ThreeDimensionalShape should have methods getArea and getVolume to calculate the surface area and volume, respectively, of the three-dimensional shape.

TASK 1: Create class diagram for abstract class Shape.

TASK 2: Create class diagrams for abstract subclasses TwoDimensionalShape and ThreeDimensionalShape which extend abstract superclassShape. TwoDimensionalShape contains method getArea, and ThreeDimensionalShape contains methods getArea and getVolume.

TASK 3: Create class diagrams for concrete classes Circle, Square, Triangle, Sphere, Cube and Tetrahedron.

TASK 4: Specify the instance variables and methods for each class

Reference no: EM131303633

Questions Cloud

Design and draw a form that lists possible potatoes : Design and draw a form (you choose the size, but be sensible) that lists possible potatoes and toppings in a manner that is easy for counter servers and kitchen crew to scan, and can also be used as input for the inventory/reorder system that is o..
The tip and the stress and strain of the uniaxial bar : Using the updated Lagrangian formulation, solve for displacement at the tip and the stress and strain of the uniaxial bar.
How do you intend to overcome these challenges : Based on your current knowledge of the programme, what do you think will be the key challenges for you during the Masters in Finance, both academically and personally? How do you intend to overcome these challenges?
Write an overview of usus nora eccles harrison museum of art : Write an overview of USU's Nora Eccles Harrison Museum of Art. You can find all the information you will need in thier website ( https://artmuseum.usu.edu ).
Create class diagram for abstract class shape : Create class diagrams for abstract subclasses TwoDimensionalShape and ThreeDimensionalShape which extend abstract superclassShape. TwoDimensionalShape contains method getArea, and ThreeDimensionalShape contains methods getArea and getVolume.
Write a function to compute n! using recursion : Recursion: Write a function to compute n! using recursion. (Note that this is not the most efficient way to compute n!. However, it is conceptually a recursive calculation that is easy to implement and test recursion in MATLAB.)
A deformation of a rectangular bar : Consider a deformation of a rectangular bar whose deformed geometry is given.- write the expression of the S11 component of the second Piola-Kirchhoff stress as a function of α.
Deploying a transparent proxy service with keyword filtering : Deploying a DHCP service for the client's network configuration - Deploying a TFTP service. The client should be able to upload and download files to the TFTP server.
Write a research paper about the surrealism : Write a research paper about the surrealism.What is surrealism? What does it stand for? Is there any contemporary artist practicing surrealism in technological era?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Find the overall thermal efficiency of this combined cycle

When this is done, the pressure in the heating system where the steam is now condensed will have to be increased to 10 psia. How does this change the overall thermal efficiency of the combined cycle?

  How did they propose to control this danger

This project was critically aware of the possibility of "scope creep" over the 11-year duration of the project. How did they propose to control this danger?

  Implemented for a software product

What Software Quality Control Nomenclature is implemented for a software product?

  Underlying database for a new point of sale

Your team has been asked by a small retail client, SmallMart, to create the underlying database for a new point of sale (POS) system.  You will be going through the Database Development Life Cycle, beginning with the analysis of requirements and e..

  Discuss how to protect privacy in electronic society

Privacy issues about RFID have received extensive attention. Discuss how to protect privacy in electronic society.

  Expert systems created-deployed in real-world applications

Expert systems have been created and deployed in many real-world applications to support decision making. Discover one recent case study or academic journal article.

  How many secus are there in total

How many sampling error calculation strata are specified for the NCS-R sampling error calculation model?

  Process of creating unique features

Competitive advantage is process of creating unique features on the product and completely differentiating it from the similar products. By protecting the product through patent filing it can boost the profitability even in larger market segment.

  Determine the number of distinct labelling of knn do the

1. determine the number of distinct labelling of knn. do the same for kmm and kmnl2. give an example of a graph g with

  Determine the splits required to generate the full tree

Your task is to work out the complete tree, starting at the root node. At each split you should consider the alternatives and make the right choices, starting from the root

  How many elements does the array contain

Declare and create the array as an integer array that has three rows and three columns. Assume that the constant ARRAY_SIZE has been declared to be 3.

  Middle-aged men had developed diabetes

According to a study in a medical journal, 202 of a sample of 5,990 middle-aged men had developed diabetes. It also found that men who were very active (burning about 3,500 calories daily) were a fourth as likely to develop diabetes compared with ..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd