why we have to extends applet class in applet program
|
Newbie Member
|
|
| 29Mar2012,10:40 | #1 |
|
plz ans me some one
|
|
Go4Expert Member
|
|
| 19Apr2012,11:27 | #2 |
|
import java.applet.*;
public class GuiExample extends Applet Consider the above example.What we are doing here is 1)importing the applet package which contains not the Applet class. 2)In the next line the Applet class is inherited so that its methods init,start,stop,destroy,paint can be overridden to perform the desired task. Hope this helps.Good Luck |
|
Go4Expert Member
|
|
| 19Apr2012,11:28 | #3 |
|
I am sorry I meant "which contains the Applet class"
|
