More on __init__:boot up?


#1

so plz explain me : you can think of init() as the method that "boots up" a class' instance object
what does "boot up" mean? thanking u in anticipation


#2

__init__() is a method, to be more specific its a magic method, its automatically called when you create a class instance

so in a way its boots up your class instance


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.