[haXe] overloading parent with different type
cornel
tcornel at gmail.com
Fri Apr 7 21:02:39 CEST 2006
hi all
Nicolas,
Related to my older post, about qooxdoo: i wrote some code that would
create haxe interfaces out of qooxdoo classes, and i've encountered
the same problem: there's a lot of methods that override methods with
the same name in the parent class. I'm not sure i understand why this
is an error.
For example, c++ has no problem with this code:
class A{
int f(){return 0;}
};
class B:public A{
std::string f(){return "hi";}
};
Could you please elaborate a bit?
thanks
cornel
More information about the Haxe
mailing list