Create a Shapes class.

Words: 208
Pages: 1
Subject: Uncategorized

Create a Shapes class. Each of the shapes will be regular shapes meaning all sides are equal. It needs to have the following: 1 variable that defines the length one side (or in the case of a circle: the radius) 2 constructors 1 is the default no argument constructor The other will accept a single argument which will define length A getter and setter for length A perimeter and area method that both will just return 0 Next create the following subclasses A Circle class A Triangle class A Square class A Pentagon class A Hexagon class Each of these classes are a subclass of the Shapes class. Redeclare and define methods as needed. Lastly, an exception to the regular shape requirement, create a Rectangle class. Make sure to add appropriate variables and methods to the class as needed.

Let Us write for you! We offer custom paper writing services Order Now.

REVIEWS


Criminology Order #: 564575

“ This is exactly what I needed . Thank you so much.”

Joanna David.


Communications and Media Order #: 564566
"Great job, completed quicker than expected. Thank you very much!"

Peggy Smith.

Art Order #: 563708
Thanks a million to the great team.

Harrison James.


"Very efficient definitely recommend this site for help getting your assignments to help"

Hannah Seven