다른 언어들과 구별되는 파이썬의 class 생성 방식을 알아보자. 생성자 생성자는 __init__ method에 정의한다. class 내 모든 method의 첫번째 파라미터는 self이다. class Animal: def __init__(self, name): self.name = name 상속 class 선언 시 괄호 안에 상속받을 class를 넣어 상속받는다. class Cat(Animal): # Cat class는 Animal class로부터 상속받는다. ... 매직 메소드 under score 두개 (__)를 붙인 built-in 함수를 정의하여, class가 처리할 연산을 손쉽게 정의할 수 있다. https://corikachu.github.io/articles/python/python-magi..