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
/
self_c.nit
1
class
A
2
var
attr
:
Int
3
4
fun
meth
(
attr
:
Int
)
5
do
6
self
.
attr
=
attr
7
end
8
end
9
10
var
a
=
new
A
(
10
)
11
print a
.
attr
# Affiche "10"
12
13
a
.
meth
(
20
)
14
15
print a
.
attr
# Affiche "20"