What does the __ Init__ function do?

“__init__” is a reseved method in python classes. It is called as a constructor in object oriented terminology. This method is called when an object is created from a class and it allows the class to initialize the attributes of the class.

Sizin İçin Seçtik  How do you define an object in class?

Leave a Reply

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