Hey everybody,

just to understand this right:

Having a class 'Basic' with property foo and generated getter getFoo and 
setter setFoo:

If I derive class 'Advanced' from class 'Basic': Is it possible to 
override the method setFoo of 'Basic'?

Code fragment:

     setFoo: function(value) {
         this.base(arguments,value);

         // more things to be done with value...
     }

Regards
Dietrich

Am 24.07.2013 09:42, schrieb Martin Wittemann:
> Hey,
>
>> >Why should that be a problem at all? Overwriting method 'A' doesn't force
>> >anyone to overwrite method 'B' as well!
>> >Those (generated) methods 'setFoo', 'getFoo' (and 'isFoo') are public 
>> >methods.
>> >You can override any public method! And you should be able to do so with the
>> >generated ones as well!
> In an abstract matter of course. But those methods are connected together as 
> the setter and the getter need to access the same value e.g.
>


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to