Can abstract method have parameters in Python?

Writing abstract methods with parameters When the subclass implements the method, it must contain all the parameters as well . The subclass’ implementation can also add extra parameters if required. We could also use default arguments, you can read about those here.18 Şub 2021

Sizin İçin Seçtik  Can a class have 2 abstract methods in Python?

Leave a Reply

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