class Box {
int b,w;
void Box(int b, int w) {
this.b = b;
this.w = w;
}
}
public class MyBox extends Box {
MyBox() {
super(10, 15);
System.out.println(b + "," + w);
}
static public void main(String args[]) {
MyBox box = new MyBox();
}
}
Login in to like
Login in to comment