--- Martin Gainty <[EMAIL PROTECTED]> wrote:
> Without declaring with implements as in
> ClassName implements InterfaceName 
> any static invocation in the class such as the
> example illustrated below will be invalid..

Static invocation? There's no "static invocation" in
the code you provided.

> >> package fu.bar;
> >> class HttpSource {
> >> RequestHandler reqHandler;
> >> };
> >>
> >> package fu.bar.*;
> >> public class JDOMHttpSource extends HttpSource {
> >> /******Constructor for JDOMHttpSource******/
> >> public JDOMHttpSource(RequestHandler req , int
> method) {
> >>  };
> >> }; //class JDOMHttpSource
> >>
> >> could one instantiate a JDOMHttpSource class and
> have any capability of referencing a valid
> requestHandler (without implementing the interface
> in referenced or base class)?

There's no interface here; what interface are you
talking about?

Someone already pointed out that unless you call a
super ctor that sets or explicitly set the
RequestHandler member variable it obviously won't be
valid.

The sample you provide does not declare an access
modifier for reqHandler; IIRC the default is
'package-private' which means that a subclass in the
same package would have access to the member variable.

Dave



 
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time 
with the Yahoo! Search movie showtime shortcut.
http://tools.search.yahoo.com/shortcuts/#news

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to