pulbic class window() extends JFrame{
pulbic window(){
JFrame f = new JFrame();
f.setSize(400,300);
f.setVisible(true);
}
}
子类:
pubilc class childWindow() extends window{
public childWindow(){
super.f.setTitle("子类");
}
}
问题:为啥在eclipse里写代码的时候,那个super.f.setTitle("子类");中的f底下老是有红线,有错,问题在哪里呢?求各路大神指条明路,帮帮小菜鸟吧……不胜感激