• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

create applet witout extends

 
yanty asyw
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to create an applet witout extends
can i do something like next
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, that doesn't work; browsers expect to instantiate something that extends java.applet.Applet. Why do you want to do this?
 
yanty asyw
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Ulf Dittmer,
i dont like to use extends
just i want to make Applets by the way like JFrame next
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i dont like to use extends

That's not going to get you far with an OO language.
 
yanty asyw
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i like oop , Mr Ulf Dittmer
please read this article http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html

i'm just avoid extends
i want a simple example without extends
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm aware of the benefits and drawbacks of interfaces vs. inheritance. From the article: The extends keyword ... should be shunned whenever possible. I agree with that, but applets are a case where it is not possible.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic