Circle - /* / Circle.java / / /* p public class Circle cfw_...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************* // Circle.java // // //******************************************************* public class Circle { p private double radius; // declare the private double instance radius private double x; // declare the private double instance x private double y; // declare the private double instance y private double PI=Math.PI; //---------------------------------------------- // Class Constructor: set the initial values of // the instance variables // for this circle //---------------------------------------------- / public Circle(double X, double Y,double Radius) { this.x = X; this.y = Y; this.radius = Radius; } //---------------------------------------------- // getX - returns the value of x //---------------------------------------------- public static double getX() { return x; // Your code goes here / } //---------------------------------------------- // getY - returns the value of y //---------------------------------------------- public static double getY() { return y;
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/15/2010 for the course CSCI 01209 taught by Professor Storm during the Fall '10 term at UGA.

Page1 / 3

Circle - /* / Circle.java / / /* p public class Circle cfw_...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online