/* * Dog.java - Part of class hierarchy for representing residents of a pet kennel * CS112 Lab 13 * * Copyright (c) 2000 - Russell C. Bjork * */import java.util.Date;/** This class represents dogs of various breeds. */class Dog extends MediumAnimal{	public Dog(String name, String owner, Date arrivalDate, Date departureDate,			   float weight, boolean needsRabiesShot, String breed)	{	    super(name, owner, arrivalDate, departureDate, weight, needsRabiesShot);	    this.breed = breed;	}	  	public String getDescription()	{		return breed; 	}	public int getDailyRate()	{ 	    int rate = 7 + (int) Math.ceil((weight - 20) / 10);		return rate;	}	// Instance variable		private String breed;}