well, I am currently developing an application which uses JFrame and Applet.
Why we can't extend both..
public class myClass extends Applet, javax.swing.JFrame {...}
//invalid...
The valid code is.
public class myClass extends Applet {
javax.swing.JFrame frame = new javax.swing.JFrame();
public void init(){
frame.setSize(300, 400);
frame.setVisible(true);
}
}
Why so? Why we can't extends more than one class