Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

abstarct class python


# Python 3.4+
from abc import ABC, abstractmethod
class Abstract(ABC):
    @abstractmethod
    def foo(self):
        pass

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #abstarct #class #python
ADD COMMENT
Topic
Name
1+2 =