// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package hib.inher.xmlmap;

public class Cow extends Animal {
    private int litermilkperday;
    public int getLitermilkperday() {
        return litermilkperday;
    }
    public void setLitermilkperday(int litermilkperday) {
        this.litermilkperday = litermilkperday;
    }
    @Override
    public String toString() {
        return "I am a cow with id " + getId() + ", name " + getName() + " and producing " + getLitermilkperday() + " liters of milk per day";
    }
}
