mirror of
https://github.com/gsi-upm/sitc
synced 2024-12-22 11:48:12 +00:00
Update 1_8_Classes.ipynb
Improved formatting.
This commit is contained in:
parent
58fc6f5e9c
commit
35b1ae4ec8
@ -41,7 +41,7 @@
|
|||||||
"The first argument of instance class method is self, that refers to the current instance of the class.\n",
|
"The first argument of instance class method is self, that refers to the current instance of the class.\n",
|
||||||
"There is a special method, __init__ that initializes the object. It is like a constructor, but the object is already created when __init__ is called.\n",
|
"There is a special method, __init__ that initializes the object. It is like a constructor, but the object is already created when __init__ is called.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"Instance attributes are define as self.variables. (self is the same than this in Java)."
|
"Instance attributes are define as *self.variables*. (self is the same than this in Java)."
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user