Answer Posted / 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 |
Post New Answer View All Answers
Can a class run without constructor?
Why is python so popular?
What does isalpha do in python?
Tell us something about garbage collector in python?
Tell me what is the difference between xrange and range?
What is __ file __ in python?
How to print without newline or space?
Why do we need Python Directories
Explain about classes in strings?
What does end do in python?
What is time sleep in python?
How can you find length of a tuple in python?
What are the differences between pass and continue?
Is google made with python?
How you can access sessions in flask?