I have the haxe code from AS3HX that converts actionscript3 to haxe. Please see the below:
class Container extends UIComponent implements IContainer implements IDataRenderer implements IFocusManagerContainer implements IListItemRenderer implements IRawChildrenContainer
{
public var verticalScrollPolicy(get, set) : String;
public var creatingContentPane(get, set) : Bool;
public var clipContent(get, set) : Bool;
...
...
}
But FlashDevelop always say "You can only implement an interface". I want to know if Haxe can implement multi interfaces?
Thanks.
Yes, see https://haxe.org/manual/types-interfaces.html
While a class may only have one parent class, it may implement multiple interfaces through multiple implements keywords
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.