Dietrich Streifert schrieb: > Hi Fabian > > will all subclasses derived from a superclass which has a mixin > inherit the mixed in attributes? > > So in the example below: will all classes which are derived from > qx.core.Object inherit the property mID? Yes, the mixins become part of the class. Once the mixin is applied, the methods and attributes of the mixin will become methods/attributes of the extended class.
> If a conflict exists eg. there is already a property named myID > defined in the unmixed class, will the mixin overwrite the existing > property? > Is this also true for methods? The default action is to throw an error if a method/attribute of the same name already exists. For the brave we provide the method qx.Clazz.patch, which doesn't have this check but this may break code and should only be used very carefully. Best Fabian ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
