Create an abstract class “Shape” with the following specifications: An abstract

Do you need this or any other assignment done for you from scratch?
We have qualified writers to help you.
We assure you a quality paper that is 100% free from plagiarism and AI.
You can choose either format of your choice ( Apa, Mla, Havard, Chicago, or any other)

NB: We do not resell your papers. Upon ordering, we do an original paper exclusively for you.

NB: All your data is kept safe from the public.

Click Here To Order Now!

Create an abstract class “Shape” with the following specifications:
An abstract

Create an abstract class “Shape” with the following specifications:
An abstract method “surface_area ()” of return type double
An abstract method “volume()” of return type double
Put your code in a Java source file named “Shape.java.”
I.
Create a class “Sphere” that extends the Shape class with the following specifications:
Attributes:
Radius
Constructor:
Implement a parameterized constructor needed to initialize the data.
toString:
Implement a “toString” method that prints out the surface area and volume.
Implement methods to compute the surface area and volume.
II.
Create a class “Cylinder” that extends the Shape class with the following specifications:
Attributes:
Radius, height – both of type double
Constructor:
Implement a parameterized constructor to initialize the data.
toString:
Implement a “toString” method that prints out the surface area and volume.
Implement methods to compute the surface area and volume.
III.
Create a class “Cone” that extends the Shape class with the following specifications:
Attributes:
Radius, height – both of type double
Constructor:
Implement a parameterized constructor to initialize the data.
toString:
Implement a “toString” method that prints out the surface area and volume.
Implement methods to compute the surface area and volume.
IV.
Create a driver class named “ShapeArray” with the following specifications:
Instantiate one sphere.
Instantiate one cylinder.
Instantiate one cone.
Store the class instances into an array named “shapeArray.”
Loop through the array and print out the instance data of each object using the object instance’s “toString” method.
Show a Unified Modeling Language (UML) diagram of your project.
Condense your source files and UML diagram as a zipped folder and submit the zipped file as your critical thinking assignment (CTA).
Students must use appropriate version control for all programmatic assignments created. GIT repositories should be established and screen captures of repositories submitted with each assignment.

Do you need this or any other assignment done for you from scratch?
We have qualified writers to help you.
We assure you a quality paper that is 100% free from plagiarism and AI.
You can choose either format of your choice ( Apa, Mla, Havard, Chicago, or any other)

NB: We do not resell your papers. Upon ordering, we do an original paper exclusively for you.

NB: All your data is kept safe from the public.

Click Here To Order Now!