//Circle6 //static variables and methods public class Circle6 { private float radius; private float area; //make PI (note the capitalization) public final static float PI = (float) 3.14159; //make size constants public final static float LARGE = 15f; public final static float MEDIUM = 10f; public final static float SMALL = 5f; public Circle6(float localRad){ radius = localRad; //note we changed this the private function area = calcArea(); } //end constructor public Circle6(){ radius = (float) 10; area = calcArea(); } // end constructor //getters and setters public float getRadius(){ return radius; } // end getRadius public void setRadius(float localRad){ radius = localRad; area = getArea(); } // end setRadius public String getRadString(){ String radString = new String(); radString = String.valueOf(radius); return radString; }// end getRadString //area stuff //the following procedure is PRIVATE //it will only be used inside this class private float calcArea(){ return PI * radius * radius; } //end calcArea public float getArea(){ return area; } //end getArea public String getAreaString(){ String areaString = new String(); areaString = String.valueOf(area); return areaString; } // end getAreaString //The following method is static (or a class function) //it is callable without an instance of myCircle //make a static circumference function public static float circumf(float localRad){ return 2 * PI * localRad; } // end class circumf //make a non-static version that works with the current //radius public float circumf(){ return 2 * PI * radius; } // end instance circumf }//end Class def