a.output
end
- meth foo
+ fun foo
do
'a'.output
'\n'.output
end
class B
-special A
+ super A
init cb(a, b: Char)
do
'B'.output
'}'.output
end
- redef meth foo
+ redef fun foo
do
'b'.output
super
end
class C
-special B
+ super B
init cc(a,b,c: Char)
do
'C'.output
'}'.output
end
- redef meth foo
+ redef fun foo
do
'c'.output
super
end
class M
-special A
- redef meth foo
+ super A
+ redef fun foo
do
'm'.output
super
end
class N
-special B
-special M
- redef meth foo
+ super B
+ super M
+ redef fun foo
do
'n'.output
super
end
class O
-special N
-special C
+ super N
+ super C
init co(a,b,c,o: Char)
do
'O'.output
cc(a,b,c)
'}'.output
end
- redef meth foo
+ redef fun foo
do
'o'.output
super