Re: Package level interfaces
From: Tony Morris (dibblego_at_optusnet.com.au)
Date: 07/05/04
- Next message: julian maisano: "RE: frozen application"
- Previous message: hilz: "Re: Autonumber fields in JDBC"
- In reply to: Tony Morris: "Re: Package level interfaces"
- Next in thread: Woebegone: "Re: Package level interfaces"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 5 Jul 2004 15:03:33 +1000
> > But isn't there a way to create an interface that can only be
implemented
> by
> > classes in the same package?
>
> No.
Well, yes, but I assume this isn't what you were asking.
// package scope interface
class interface X
{
}
I assume you were asking about the (non-)existance of package scope methods
of interfaces.
To want this indicates a design problem, rather than a language deficiency.
-- Tony Morris (BInfTech, Cert 3 I.T.) Software Engineer (2003 VTR1000F) Sun Certified Programmer for the Java 2 Platform (1.4) Sun Certified Developer for the Java 2 Platform
- Next message: julian maisano: "RE: frozen application"
- Previous message: hilz: "Re: Autonumber fields in JDBC"
- In reply to: Tony Morris: "Re: Package level interfaces"
- Next in thread: Woebegone: "Re: Package level interfaces"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|