![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
class Human: age = 0 onBirthday(self): age += 1 class Hatachi(Human): onBirthday(self): if self.age < 20: age += 1
2013-07-19 12:07:32![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
class Human: age = 0 def onBirthday(self): age+=1 class Hatachi(Human): def onBirthday(self): if self.age < 20: age+=1
2013-07-19 12:08:43![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
Class Hatachi: birth_year = 1992 onBirthday(self): birth_year += 1
2013-07-19 12:08:55![](https://tgfile.tg-static.com/static/web/img/placeholder.gif)
なんか一部誤解してる人いるみたいだけど、ハタチってのは別に年齢のことじゃなくて、いわゆる人称代名詞で彼彼女ハタチみたいなもんだよね?
2013-07-19 12:38:16