Re: "only for polymorphism"
Interfaces are great for this because if you have a concrete class that
implements an interface, that instance gains another (abstract) type in
addition to it's concrete type. This allows you to upcast an instance to the
abstract type and allows client code (the code of
Oh comon Andreas I was'nt angry nor I was yelling. I'd never do something
like that to you :)
2006/10/23, Jim Kremens <[EMAIL PROTECTED]>:
Re: Simgletons... you can have all other public methods in that class
subscribe to interface methods, except 'getInstance()' or 'create()' or
whatever. So
Re: Simgletons... you can have all other public methods in that class
subscribe to interface methods, except 'getInstance()' or 'create()' or
whatever. So singletons can definitely make use of interfaces.
I agree that static methods would be useful, as would intrinsic getters and
setters.
Jim K
Because they *INTRIGUE* me Janis, and i'm excited about what they look
like they can do on paper. AS2 doesn't conform to any kind of OOP
standard anyway, so what's wrong with asking questions?
The documentation states interfaces are good for API conformity, and
that's what i'm trying to achiev
Interfce main purpose is to define communication methods for some kind of
object.
Pls be so kind and tell me what in a hell private properties have to do with
external objects which what to communicate with instance implementing
particular interface?
Static mighe be usefull, but then again, creati
5 matches
Mail list logo