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
/
constructeur2_c.nit
diff --git a/doc/developpez/poo/listings/constructeur2_c.nit
b/doc/developpez/poo/listings/constructeur2_c.nit
new file mode 100644
(file)
index 0000000..
8a8026f
--- /dev/null
+++ b/
doc/developpez/poo/listings/constructeur2_c.nit
@@ -0,0
+1,9
@@
+class MaClasse
+
+ var entier: Int
+ var chaine: String
+
+ # Le constructeur par défaut sera init(Int, String)
+end
+
+var o = new MaClasse(10, "toto")