Hi,

I have a few questions at once, I hope you don't mind me asking them in one
thread:

1) Abstract classes are great, but I don't always want to create a new file
for an implementation; sometimes I want to create it inline. Is there a way
/ what is the best way to do that with classes written in qooxdoo? My best
pattern so far would be along the lines

var instance = (function () {
    var _this = new AbstractClass();
    _this.abstractMethod = function () { ... };

    return _this;
})();

However, I think this won't fly with a toolchain if the class is actually
typed as abstract, so I would have to omit that.

2) Is there any specific reason why qooxdoo does not "inherit" static
methods? Inheritance is the wrong word here as static methods are
class-level methods, not instance-level methods. But, for example, in Java,
if ClassB extends from ClassA and ClassA has a static method staticMethod,
then new ClassB().staticMethod() will still work.

3) I saw that qx.core.Object has a toHashCode method – how is this code
generated and what is its contract? Will the hashCode of two objects be
equal if the objects are equal and if so, how is this measured?

Thanks in advance for your replies!



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/Several-questions-abstract-classes-static-methods-hashcode-tp7584329.html
Sent from the qooxdoo mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to