/* Description: Template for Dog class
 * Name: Put your name here
 * Date: ??
*/

class Dog{
  //Data fields or instance variable
  String name;
  int age;
 
  //*********Constructor**************
  Dog(String dogName, int dogAge){
    name = dogName;  //assign name 
    age = dogAge;    //assign age
  }
  
  //**********Methods*******************
  
  
  // Makes dog bark with default sound
  void bark(){
    System.out.println("Woof");  //default bark sound is woof
  }
  
  //Makes dog bark with particular sound
   void bark(String barkSound){
    System.out.println(barkSound);  //bark sound is the input string
  }
   
   //Sets dog's age
   void setAge(int dogAge){
     age = dogAge;   //set age to input age
   }
   
   //Returns dog's age
   int getAge(){
    return age; 
   }
   
  //Makes Wake up the neighborhood
 void wakeTheNeighbors(){
   
   //Call bark method 50 times
    int i = 50;
    while(i > 0){
      bark();
      i = i - 1;
    }
  }
}
