Question: You have been given a complete Dog class. Inside the main method, create a Scanner. Using your scanner object and the necessary print statements, ask
You have been given a complete Dog class. Inside the main method, create a Scanner. Using your scanner object and the necessary print statements, ask the user what the name of their Dog is then create a Dog object with that name. Your output should look something like this:
What is the name of your dog?
Kaylee
What type of dog is Kaylee?
German Shepherd
The dog's name is: Kaylee
The dog's breed is: German Shepherd
Please note: the output lines should be using your getters!
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
