关于super(s); 的问题...
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
class MyButton extends Button implements ActionListener,TextListener
{
TextArea text1,text2;
MyButton(String s)
{
super(s);
text1=new TextArea(8,8);
text2=new TextArea(10,10);
text1.addTextListener(this);
this.addActionListener(this);
}
}
以上的 super(s); 是什么意思?
书上说是调用父类的构造方法,不过我还是弄不懂怎么回事!!
请高手们指教!!