actionscript 3 - Why properties are not declarables in interfaces -
In Action Script 3, I can not tell the wars in the interface. I do not get this. I know that I can define the gates and the setters and work around it, but what if I just want a simple public property? I usually use gates and sets if something happens when I set or get a property, but what if I want to save the value?
You can put it in such a way: the interface exists because in your language you have many abstract base classes Can not get from If AS3 has allowed you to do this, then it might not be the 'interface', but 'pure essence classics'.
In other words, your interface will be from there for implementation name conflicts and many other legacy problems (diamond).
However, should be a setter with only one recipient or any implementation should work.
Public Interface I {function get A (): int; }
(I do not have the AS3 compiler in my hand)
Comments
Post a Comment