( 춤 안춥니다. )
앞으로 이 시리즈는 짤막하지만 실용적인 내용들을 담을겁니다!
임의의 개체에서 상속을 받은 자식요소에서 원형의 구성요소가 변경되는 것
쉽게말해 덮어쓰기 에요 !
class MangoFather: # 망고의 아빠클래스에요! def height(self): # 키가 작아서 미안해하네요... print('sorry, son... i am not that tall...') def lucky(self): # 운이 유전일까요?! print('but i am very lucky guy, i wish you, too') def character(self): # 성격은 유전이 될 것 같네요 ㅎ print('and i am also very funny man!') def memory(self): # 아빤 많은 기억이 있어요! print('i have very many memories about good things') def family(self): # 가족이네요! print('very very perfect!') class Mango(MangoFather): # 아빠의 속성들을 상속받은 망고에요! def height(self): # 키가 작은건 똑같지만, 만족해요! print('oh... i am satisfied with this, father') def lucky(self): # 운도 유전인가봐요! 행복해요! print('thank you fater, i am lucky guy, too!') def character(self): # 더 나은사람이 되어가고 있어요! print('me, too father! i am trying to be better man!') def memory(self): # 좋은 추억들을 만들어가고 있어요! print('i am making memories about good things!')