вот так например class A{ protected int type; public A(int type) { this.type = type; } } class B{ public B() { super(8); } }