[4069] in java-interest
Re: [Q] getWidth(this), why passing 'this'?
daemon@ATHENA.MIT.EDU (Jim Graham)
Fri Dec 8 22:21:36 1995
Date: Fri, 8 Dec 1995 17:28:26 -0800
From: flar@bendenweyr.Eng.Sun.COM (Jim Graham)
To: java-interest@java.Eng.Sun.COM, edith@pencom.com
> According to the API, getWidth takes an ImageObserver object as a parameter.
> 'this' is an applet. The only common ancestor of Applet and imageObserver is
> Object. How come 'this' can be passed as an mageObserver?
Applet is a subclass of Component which implements ImageObserver as an
interface.
...jim
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com