Write a Pet with a name and an age. birthday adds a year. isPuppy returns true while the age is under 1. describe returns text like "Rex is 3".
class Pet { Pet(String name, int age); void birthday(); boolean isPuppy(); String describe(); }
Examples
There are also 3 hidden tests you can't see. Solve the problem, not the examples.