public class Dog{


//instance variables

private String sDogName = "";
private int iDogTag =0;
private char cGender = ' ';
private String sBreed="";


// constructor method
//this creates an object of the class Dog

   public Dog(String sDogName, int iDogTag, char cGender, String sBreed ){
      this.sDogName = sDogName;
      this.iDogTag = iDogTag;
      this.cGender = cGender;
      this.sBreed = sBreed;
   } //constructor ends.


//this method returns a printable version of the Dog Object

  public String toString( ){

    String s = "Dog Name : "+ this.sDogName;
           s = s + "\n  DogTag : "+ this.iDogTag;
           if((cGender=='f')|| (cGender=='F')){
	           s = s + "\n  Gender : female";

           }
           else{
	            s = s + "\n  Gender : male";
	   }
           s = s + "\n  Breed : "+ this.sBreed;
     return s;  //returning all the information correctly formatted.

   } //end of toString method




//this method updates/changes the name of a dog

  public void setName(String newName){
      this.sDogName = newName;
  }  //end of setName method



}// end of class Dog