What does __init__ mean

Home Forums Python Course Forum Classes and Functions What does __init__ mean

Viewing 0 reply threads
  • Author
    • training@h2kinfosys.com

        __init__ is called a constructor. The function is called automatically once the the class is called. All classes have a function called __init__(), which is always executed when the class is being initiated. Use of __init__() function is to assign values to object properties, or other operations that are necessary to do when the object is being created.


    Viewing 0 reply threads
    • You must be logged in to reply to this topic.
    cf7sr token not found