class Ball2 extends Ball { function getType():Number { return 2; } }