Question: IN PSEUDOCODE for JAVA Define the following classes 1) Circle a) Must have a private attribute called radius of type double. b) Must have a

IN PSEUDOCODE for JAVA

Define the following classes

IN PSEUDOCODE for JAVA Define the following classes 1) Circle a) Must

1) Circle a) Must have a private attribute called radius of type double. b) Must have a constructor which takes a single parameter of type double. It should set the class attribute radius to this value. c) Must have a method called circumference, which takes no parameters, and returns a double. The circumference of a circle is calculated by multiplying 2* Pi* radius. Note: both Java and C# have a constant called Math.PI which is equal to Pi. d) Must have a method called area, which takes no parameters and returns a double. The area of a circle is calculated by multiplying Pi * radius^2. The Math class in both Java and C# have a method for calculating one number raised to a power. You'll need to look up this method and use it to raise the radius to the second power

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!