filmov
tv
Python Part-16 (Classes in python) __init__ , self, pass keywords and methods

Показать описание
Python 3.x class
Discussed about the classes in this video
What is an empty class in python and how pass keyword can be used for creating an empty class.
__init__ is the first method called immediately after the object cretion in python. No constructors in python to create an object
object gets created even before the call to __init__
self refers to the current object.
can declare variables in class same way as you did in other languages
Discussed about the classes in this video
What is an empty class in python and how pass keyword can be used for creating an empty class.
__init__ is the first method called immediately after the object cretion in python. No constructors in python to create an object
object gets created even before the call to __init__
self refers to the current object.
can declare variables in class same way as you did in other languages