public class Dog 
{
  private int weight;
  private String sound;
  
  public Dog()
  {
    setWeight(0);
    setSound("");
  }
  
  public Dog(int weightValue, String soundValue)
  {
    setWeight(weightValue);
    setSound(soundValue);
  }
  
  public int getWeight()
  {
    return weight;
  }
  
  public void setWeight(int value)
  {
    weight = value;
  }
  
  public String getSound()
  {
    return sound;
  }
  
  public void setSound(String value)
  {
    sound = value;
  }
  
  public void bark()
  {
    System.out.println(getSound());
  }
  
  public static void main (String[]args)
  {   
    Dog spot = new Dog(10, "WOOF");
    
    System.out.println(spot.getWeight());
    spot.bark();
    
    spot.setWeight(20);
    System.out.println(spot.getWeight());
  }
}
