What is python __ init __ method?
Answer / jithesh sunny
__INIT__ method in the python is a special method used for initializing an class attributes or objects. It can be read as "DUNDER INIT". Usually it will take up an argument called SELF, which is a reference to the object that is created or called.
SELF in python is same as THIS in JAVA. And __INIT__ is also know as constructor in JAVA.
| Is This Answer Correct ? | 0 Yes | 0 No |
Should I learn html before python?
Can we overload constructor in python?
What are python slots?
Which is faster c++ or python?
What is setuptools in python?
What is the purpose of the single underscore “_” variable in python?
Does python have null?
Explain garbage collection in python?
What companies use python?
What are the local and global variables in python?
What are the use of sets in python?
How do I parse xml in python?