package Uebung2_IO.loesung3; public class Unterzaehler extends Zaehler { private int unterzaehlerstand; Unterzaehler(String zahelerort, Verbraucher verbraucher, int zaehlerstand) { super(zahelerort,verbraucher, zaehlerstand); this.unterzaehlerstand = zaehlerstand; } public int getUnterzaehlerstand() { return unterzaehlerstand; } public void setUnterzaehlerstand(int unterzaehlerstand) { this.unterzaehlerstand = unterzaehlerstand; } @Override public Unterzaehler clone() throws CloneNotSupportedException { return (Unterzaehler) super.clone(); } }