Include a to string method that returns a one-line


Design and implement a class called Dog that contains instance data that represents the dog's name and age. Define the Dog constructor to accept and initialize instance data. Include getter and setter methods for the name and age. Include a method to compute and return the age of the dog in "person years" (seven times the dog's age). Include a to String method that returns a one-line description of the dog. Create a driver class called Kennel, whose main method instantiates and updates several Dog objects.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Include a to string method that returns a one-line
Reference No:- TGS01398524

Expected delivery within 24 Hours