well because I did something like
Object a = new box()
and because box was defined as having a “pos” attribute. But I guess that don’t really make sens.
I’ll probably do the option of combining them under one class as you’ve shown, but i’ll avoid doing that if I can fine an other way around keeping them as separate classes.
(I don’t know how to indent the code in my post, sorry)