Can Python init be empty?

An empty __init__ will show folks, who read your code, that an empty object was OK when you wrote the code . You will have a place to put non-default initialization code when you need it.

Sizin İçin Seçtik  What is a default constructor Python?

Leave a Reply

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