Define a class Animal, with member variables name and age and avoid method eat that prints out “I’m eating”. a. Define a class catthat is a subclass of Animal with a void method meow() that prints“meow! meow!”. A cat should have member variable for favorite milkflavors, which allows to store one or more milk flavors. b. Definea class dog that is also a subclass of Animal, with additionalmember variables for commandsLearned and favoriteGames and anadditional methods bark that prints out “woof! woof!” andlearnCommand(String cmd) that adds a new command to the dog’scommandsLearned list. Add a similar method to add a
OR
OR