// Aaron Tan
// Ball class:
//   Data members: colour, radius and centre.

import java.util.*;
import java.awt.*;

public class Ball {

   private String colour;
   private double radius;
   private Point  centre; 

   /**************************************************/

   // Construct a default Ball object with yellow colour,
   // 1.0 radius, and centre at (0, 0).
   public Ball(){
      this("yellow", 1.0, new Point());
   }

   public Ball(String newColour, double newRadius, Point newCentre) {
      setColour(newColour); 
      setRadius(newRadius); 
      setCentre(newCentre);
   }

   /**************************************************/

   public String getColour() {
      return this.colour;
   }

   public double getRadius() {
      return this.radius;
   }

   public Point getCentre() {
      return this.centre;
   }

   /**************************************************/

   public void setColour(String colour) {
      this.colour = colour;
   }

   public void setRadius(double radius) {
      this.radius = radius;
   }

   public void setCentre(Point centre) {
      this.centre = centre;
   }

}


