What does ABC Abstractmethod do?

abc. abstractmethod(function) A decorator indicating abstract methods . Using this decorator requires that the class’s metaclass is ABCMeta or is derived from it. A class that has a metaclass derived from ABCMeta cannot be instantiated unless all of its abstract methods and properties are overridden.

Sizin İçin Seçtik  What is the difference between type and class in Python?

Leave a Reply

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