Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class medico:
- def __init__(self, nome, spec):
- # @param n: string
- # @param spec: string
- # @param colleghi: list
- self.n = nome
- self.s = spec
- self.c = []
- def nome(self):
- return self.n
- def spec(self):
- return self.s
- def colleghi(self):
- return self.c
- def newCol(self, coll):
- # @param coll: string
- self.c += [coll.nome(), coll.spec()]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement