On Thu, December 29, 2005 10:31 am, Jochem Maas wrote:
> anyone here work with Interfaces? I do and I like them alot;
>
> I recently ran into a situation where it would be nice to be able to
> specify
> that a given interface is only allowed to be implemented by a certain
> class (and all subclasse
Hi Jochem,
i know what you mean, but you can't define code in interfaces to implement a
logic. You should use an abstract class to restrict the access. I think a
interface should just define a rude prototype of function
--
Marco Kaiser
hi Marco,
I want to apply the idea to interface implementation not
class extension. that is to say I want to be able to make an
interface only implementable by certain (defined) classes (and their
subclasses) with out imposing any restriction on the classes
themselves (like that they must extend
3 matches
Mail list logo