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 difference between encapsulation and abstraction in python?
How do I sort a dictionary by value?
How do I run python setup py?
What is purpose of __init__ in class ? Is it necessary to use __init__ while creating a class ?
Write a program to check whether the object is of a class or its subclass.
Write program to validate the email address in python?
What is whitespace in python?
What does the meaning of gil in python language?
What is pytest?
What is the output of the following?
Can __ init __ return value?
What is abstraction in python?