class Sub1 extends Super { int tall1 = 10; public Sub1(String navn) { super(navn); } public int getTall() { return tall1; } @Override public String toString() { return super.toString() + tall1; } }