62,614
社区成员
发帖
与我相关
我的任务
分享
public class Circle extends Shape {
static Shape s1 = new Shape(1);
//Shape s2 = new Shape(3);
Shape s2 = null;
Circle(int i) {
super(i);
s2 = new Shape(3);
System.out.println("This is Circle" + i);
}
public static void main(String args[]) {
Circle c1 = new Circle(2);
}
}