| 1 |
#include "fi_util.h" |
| 2 |
|
| 3 |
main( args ) { |
| 4 |
"<< littleBlueBall._name >>"; |
| 5 |
} |
| 6 |
|
| 7 |
class Item: object |
| 8 |
; |
| 9 |
|
| 10 |
class Ball: Item |
| 11 |
; |
| 12 |
|
| 13 |
class RedBall: Ball |
| 14 |
_init_RedBall() { |
| 15 |
"\n_init_RedBall: << _name >>"; |
| 16 |
} |
| 17 |
; |
| 18 |
|
| 19 |
class BlueBall: Ball |
| 20 |
_init_BlueBall() { |
| 21 |
"\n_init_BlueBall: << _name >>"; |
| 22 |
} |
| 23 |
|
| 24 |
_init_Ball() { |
| 25 |
"\n_init_Ball (in BlueBall): << _name >>"; |
| 26 |
} |
| 27 |
; |
| 28 |
|
| 29 |
littleBlueBall: BlueBall; |
| 30 |
bigBlueBall: BlueBall; |
| 31 |
littleRedBall: RedBall; |
| 32 |
bigRedBall: RedBall; |
| 33 |
|