nitlanguage
/
nit.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
doc: french doc "développez en Nit"
[nit.git]
/
doc
/
developpez
/
poo
/
listings
/
redef5_c.nit
1
class
A
2
var
attr
:
String
3
end
4
5
class
B
6
super
A
7
8
init
(
attr
)
9
do
10
self
.
attr
=
attr
.
to_upper
11
end
12
end
13
14
var
a
=
new
A
(
"toto"
)
15
print a
.
attr
16
17
var
b
=
new
B
(
"toto"
)
18
print b
.
attr