c.output
' '.output
end
- meth work do '\n'.output
+ fun work do '\n'.output
end
class B
-special A
+ super A
init initb do
'B'.output
'1'.output
end
class C
-special A
+ super A
init do
'C'.output
'1'.output
' '.output
- inita
+ super
'C'.output
'2'.output
' '.output
end
class D
-special B
-special C
+ super B
+ super C
init initd do
#alt1# super
'D'.output
'1'.output
' '.output
#alt4# init
- initb #!alt2#
+ initb #alt2#
'D'.output
'2'.output
' '.output