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 |
What is the use of isupper keyword in python?
What are the supported data types in python?
Does python support multiple inheritance?
What is the difference between list and tuple?
How do you alphabetize a list in python?
Why lambda forms in python do not have statements?
What are the literals in Python?
What are the 4 data types in python?
How to declare the variables function in python?
What is the pass statement in python?
What is the difference between ‘match’ and ‘search’ in python?
Why c++ is faster than python?