nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
doc: french doc "développez en Nit"
[nit.git]
/
doc
/
developpez
/
poo
/
listings
/
accesseurs3_c.nit
diff --git a/doc/developpez/poo/listings/accesseurs3_c.nit
b/doc/developpez/poo/listings/accesseurs3_c.nit
new file mode 100644
(file)
index 0000000..
3982e2d
--- /dev/null
+++ b/
doc/developpez/poo/listings/accesseurs3_c.nit
@@ -0,0
+1,9
@@
+class Test
+ var attribut1: String writable = "Attribut 1"
+ protected var attribut2: String protected writable = "Attribut 2"
+end
+
+var test = new Test
+
+test.attribut1= "Setter public"
+print test.attribut1 #Setter public