T
Tim Kuehn
Guest
WRT the circle-ellipse question - all the answers I read got it wrong. There is a common ancestor for both, but they don't stack. Ie, you can't do Ellipse->Circle or Circle->Ellipse The inheritance should be: RoundObject (x, y) -> Circle (radius) RoundObject (x, y) -> Ellipse(x, y) Make the RoundObject constructor like so: Constructor PROTECTED RoundObject (x, y) Make the RoundObject "x, y" properties protected and map RoundObject:X, RoundObject:Y to Radius in Circle and X, Y in Ellipse, and the problem is solved.
Continue reading...
Continue reading...