// Aaron Tan
// Ball class:
//   Data members: texture (static), colour and radius
// 
// Version 1: Basic version.
// This class will be developed as the course progresses.
// 'this' is formally introduced in Chapter 7, so I will
// try to avoid it here. But you can inform the students
// about it, or when students ask.

class Ball {

   /************** Data members **********************/

   private static String texture = "smooth";

   private String colour;
   private double radius;

   /************** Constructor **********************/
   // only one constructor is created as overloading
   // is introduced later in Chapter 7
   // Default constructor creates a ball object with
   // yellow colour and radius 10.0

   public Ball() {
      setColour("yellow");  // default colour
      setRadius(10.0);      // default radius

      // the statements below work too
      // colour = "yellow";
      // radius = 10.0;
   }

   /**************** Accessors ***********************/

   public static String getTexture() {
      return texture;
   }

   public String getColour() {
      return colour;
   }

   public double getRadius() {
      return radius;
   }

   /**************** Mutators ************************/

   public static void setTexture(String t) {
      texture = t;
   }

   public void setColour(String c) {
      colour = c;
   }

   public void setRadius(double r) {
      radius = r;
   }

}

