What is INIT in Python?

Daniel William

New member
What is INIT in Python?
Answer
__init__ is one of the reserved methods in Python. In object oriented programming, it is known as a constructor. The __init__ method can be called when an object is created from the class, and access is required to initialize the attributes of the class.
 

Tìm kiếm

Back
Top