Applets - public class

Hi! I have just started making my first applet class today. Unlike classes I have made till now in core java, it was not compulsory for me to declare a class public. But why is it necessary to declare class for making applet (class that extends applet)public.

Thanks in advance.

Message was edited by:

GS1627

Message was edited by:

GS1627

[385 byte] By [GS1627a] at [2007-10-2 22:12:11]
# 1
Your applet class is called/instantiated from other class that belongs to internal Java appletframework that is launched from browser plugin or appletviewer program. So it should be apublic class.
hiwaa at 2007-7-14 1:29:05 > top of Java-index,Java Essentials,New To Java...
# 2
Thnaks for your reply.
GS1627a at 2007-7-14 1:29:05 > top of Java-index,Java Essentials,New To Java...