Is __ init __ same as constructor?

__init__() is not a constructor . We saw the self as the first parameter which is nothing but the object itself i.e object already exists. __init__() is called immediately after the object is created and is used to initialize it.10 Mar 2020

Sizin İçin Seçtik  Redüktörlü motor ne ise yarar?

Leave a Reply

Your email address will not be published. Required fields are marked *