Created
June 5, 2015 14:35
-
-
Save gabicavalcante/048e7baad81d1ff8fbdc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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