package lt.bit.abstrakcios2; public class BobCat extends Automobilis { private String priedas; @Override public double kuroSanaudos() { return 10; } @Override public double bakoTalpa() { return 20; } @Override public String getName() { return "BobCat, priedas: "+this.priedas; } public BobCat setPriedas(String priedas){ this.priedas=priedas; return this; } public String getPriedas(){ return this.priedas; } }