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
/
accesseurs2_c.nit
1
class
Test
2
var
attribut1
:
String
=
"Getter public"
3
protected var
attribut2
:
String
=
"Getter protected"
4
end
5
6
var
test
=
new
Test
7
8
print test
.
attribut1
#Getter public
9
#print test.attribut2 #Illégal puisque le getter implicite est défini comme protected