public class nonInteractiveGauge extends Gauge implements Runnable{
static int incresement = 1;
Thread self;
public nonInteractiveGauge() {
super("非交互 Gauge",false,60,0);
self = new Thread(this);
self.start();
}
----------------------------super 那句是调用父类的构造函数,这样理对不 ?然后super 那句,可以不调用父类的构造函数来实现同样的功能吗?
static int incresement = 1;
Thread self;
public nonInteractiveGauge() {
super("非交互 Gauge",false,60,0);
self = new Thread(this);
self.start();
}
----------------------------super 那句是调用父类的构造函数,这样理对不 ?然后super 那句,可以不调用父类的构造函数来实现同样的功能吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货