_init_() a special method which is called as
Answers
Answered by
1
Answer:
__init__" is a reseved method in python classes. It is known as a constructor in object oriented concepts.
Answered by
0
_init_() a special method which is known as constructor in oops (object-oriented programming)
Explanation:
- We can say it is an important method or function which is used to allocate the memory to the objects of the class.
- If we are not defining any constructor, then any class program will automatically call the default constructor of the class.
- _init_() method is specifically used in python programming language.
- With the help of the _init_() function, we can assign any value to any variable inside any class.
Learn more about constructor in OOPS
What is constructor??
https://brainly.in/question/5798383
What is the difference between constructor overloading and function overloading
https://brainly.in/question/4664500
Similar questions