Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Applet Dount?

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have the following doubts about applets. Whether the following are true or not

1 An applet can change the CODEBASE
2 An applet cannot call the update() method directly
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
First you must understand what CODEBASE is. CODEBASE is the directory (forget I said that ); is the PLACE where an applet is loaded from, into a Web page. That should answer the question.
An Applet, which is a Panel, is a Container which is a Component. The method <CODE>update()</CODE> is defined in Component. That should answer the question. Hint: objects can legally call even <CODE>private</CODE> methods of their class. Not that <CODE>update()</CODE> is private, which it isn't... But objects of subclasses can call <CODE>public</CODE> methods of their super classes always. Remember that subclasses cannot override methods and give them less accessibility...
One of my goals here is to help people think... about the answers...
I hope you appreciate that!

[This message has been edited by Tony Alicea (edited February 05, 2000).]
 
Can't .... do .... plaid .... So I did this tiny ad instead:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic