[Flashcoders] Interfaces and private methods ...

2008-08-04 Thread S0 F1
How can you force a set of classes to define a private method if Interface members cannot be declared public, private, protected, or internal? Create an abstract class with private method(s) that throw an error, unless overwritten by subclasses? Is this the only way?

Re: [Flashcoders] Interfaces and private methods ...

2008-08-04 Thread Cédric Tabin
Hello, You cannot force a class to implement a private method. And that would be totally useless... The target of an interface is to define a set of methods that are accessible by any classes = private, internal and protected methods are too restricted. What do you want to do ? Regards, Cedric

Re: [Flashcoders] Interfaces and private methods ...

2008-08-04 Thread Ian Thomas
On Mon, Aug 4, 2008 at 9:37 AM, Ian Thomas [EMAIL PROTECTED] wrote: Why would you want to force implementation of a private class? Private method. Sorry! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com

Re: [Flashcoders] Interfaces and private methods ...

2008-08-04 Thread Ian Thomas
Why would you want to force implementation of a private class? Or are you actually trying to create an abstract class - and are trying to ensure that a subclass provides an implementation of an internal method? (Labelled as 'private' in AS2 or 'protected' in AS3.) In which case, neither AS2 nor