/*
 * Description: Class that describes Dog object
 */


public class Dog{
  //instance variable
  String name; 
  int age;
 
  //Constructor without parameters
  Dog(String dogName, int dogAge){
    name = dogName; //intialize name
    age = dogAge;   //initialize age
  }
 
  //Constructor without parameters
  Dog(){
      name = "Unknown"; //intialize name
      age = 1; //intialize age     
  }
  
  
  /*
   * ******Methods*******
  */
  
  //Returns age of the dog
  public int getAge(){
    return age;
  }
  
  //Sets the appropriate age of the test
  public void setAge(int Age){
     age = Age;
  }
    
  //Returns the name of the dog
  public String getName(){
    return name; 
  }
  
  //Assign a name to the dog
  public void setName(String Name){
      name = Name;
  }
  
  //Increment age of the dog by 1
  public void incrementAge(){
    age = age + 1;
  }

 //Make the dog bark 5 times
 public void bark() {
     int i = 5;
     while(i > 0){
         System.out.println("woof");
         i = i - 1;
     }
 }
}
