from abc import ABC, abstractmethod
class Example(ABC):
def smile(self):
print("smile")
My understanding is that Example
becomes an AbstractClass
when it inherits the ABC
class
. An AbstractClass
can't be instantiated but
the following code executes without errors
example = Example()