package lt.bit.auto; public class Variklis { private double litrazas; private double galia; public Variklis() { } public Variklis(double litrazas, double galia) { this.litrazas = litrazas; this.galia = galia; } public double getLitrazas() { return litrazas; } public void setLitrazas(double litrazas) { this.litrazas = litrazas; } public double getGalia() { return galia; } public void setGalia(double galia) { this.galia = galia; } public String toString(){ return "Variklis: "+this.litrazas+"l. "+this.galia+"kw. "; } }