Write a class called cat that has the following Three privat
     Write a class called cat that has the following:  Three private instance variables  name - A String representation of the cat\'s name.  fluffiness - The cat\'s fluffiness on an integer scale of I to 10.  lives - The integer number of lives that the cat has left.  Two constructors  A default constructor that initializes the name of the cat to \"Fluffy\", and sets fluffiness to 10 and lives to 9.  A parameterized constructor that takes a String, int, int as parameters and assigns them to the name, fluffiness, and lives  Three accessors (getters)  getName which returns a String corresponding to the cat s name  getFluffiness which returns an int corresponding to the cat\'s fluffiness  getLives which returns an int corresponding to the cat\'s remaining lives  Three mutators (setters)  setName which has one parameter, a String, which is used to assign the cat\'s name  setFluffiness which has one parameter, an int, which is used to assign the cat\'s fluffiness  setLives which has one parameter, an int, which is used to assign the cat\'s remaining lives
 
  
  Solution
public class Cat
{
private String name;
private int flufiness;
private int lives;
Cat()
{
name=\"Fluffy\";
flufiness=10;
lives=9;
}
Cat(String s,int a,int b)
{
name=s;
flufiness=a;
lives=b;
}
public void setFlufiness(int a)
{
flufiness=a;
}
public String getName()
{
return name;
}
public int getFlufiness()
{
return flufiness;
}
public int getLives()
{
return lives;
}
}
public void setName(String s)
{
name=s;
}
public void setLives(int b)
{
lives=b;
}


