package generations;

class Child extends Parent {
    public int getBottom(){
        return bottom;
    }

    public void setBottom(int b){
        bottom = b;
        setMiddle(bottom/2);
        setTop(bottom/3);
    }

    private int bottom;
}
