Skip to content

Instantly share code, notes, and snippets.

@gabicavalcante
Created June 5, 2015 14:35
Show Gist options
  • Save gabicavalcante/048e7baad81d1ff8fbdc to your computer and use it in GitHub Desktop.
Save gabicavalcante/048e7baad81d1ff8fbdc to your computer and use it in GitHub Desktop.
class Pessoa(object):
FEMALE = 0
MALE = 1
def __init__(self, nome, sexo):
super(Pessoa, self).__init__()
self._nome = nome
self._sexo = sexo
def __str__(self):
return str(self._nome)
class Pais(Pessoa):
def __init__(self, nome, sexo, crianca):
super(Pais, self).__init__(nome, sexo)
self._crianca = crianca
def getCrianca(self, i):
return self._crianca[i]
def __str__(self):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment