public class Dog { private int age, weight; private String name; public Dog(String name, int weight) { this.name = name; this.weight = weight; this.age = 0; } public String getName() { return this.name; } public void birthday() { this.age++; } }