//dog class
public class Dog{
private String name;
private int ownerID;
private String breed;
private double age;
private double weight;
public Dog(String name, int ownerID, String breed, double age, double weight)
{
this.name = name;
this.ownerID = ownerID;
this.breed = breed;
this.age = age;
this.weight = weight;
}
//set methods
public void setName(String name){
this.name = name;
}
public void setOwnerID(int ownerID){
this.ownerID = ownerID;
}
public void setBreed(String breed){
this.breed = breed;
}
public void setAge(double age){
this.age = age;
}
public void setWeight(double weight){
this.weight = weight;
}
//print methods
public void printName(){
System.out.println
("Dog name: " + name
);
}
public void printOwnerID(){
System.out.println
("Owner ID: " + ownerID
);
}
public void printBreed(){
System.out.println
("Dog breed: " + breed
);
}
public void printAge(){
System.out.println
("Dog age: " + age
);
}
public void printWeight(){
System.out.println
("Dog weight: " + weight
);
}
public void printAll(){
printName();
printOwnerID();
printBreed();
printAge();
printWeight();
}
}