I have doubts about the structure of the program where you create a dog that barfs. what exactly must be the order of the parenthesis? what's in what?
it looks like it's
so why is the main inside the class? it is not explained anywhere.
Replace this line with your code.