Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 359 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 359 Bytes

Gof patterns

ways to implement interfaces with python

import abc

class Animal(object):

    __metaclass__ = abc.ABCMeta

    @abc.abstractmethod
    def method_to_implement(self, input):
        return

class Animal:

    def andar(self):
        raise NotImplementedError("Animais precisam implementar andar")