Question: Please help with these 3 short code questions in Java. Short Code 1. Write a class definition for a class named Dog that models a

Please help with these 3 short code questions in Java.
Short Code 1. Write a class definition for a class named Dog that models a dog. Besides a constructor that doesn't do anything, the Dog class provides two methods: bark and growl. The first method writes the characters "arf" on a single line to standard output. The second writes the characters "rr" on a single line to standard output. 2. Write a program called DogPack. It assumes the availability of a class called Dog (do NOT write the Dog class, just assume it is available). The program creates 4 Dog objects and sends each of them two growl messages and a bark message. Neither the constructor for Dog nor its methods require any arguments. The methods are void. 3. Create a class Cube that can be queried for its total area and volume
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
