[주절주절] - [Today I Learned] # 상속(inheritance)과 메서드 오버 라이딩(overriding) - 클래스 상속이란 물려주는 클래스(Parent class, Super class)의 속성과 메서드를 물려받는 클래스(Child class, Sub class)가 갖게 되는 것. - 어떤 클래스를 상속받아 클래스를 정의했을 때, 부모 클래스의 메서드를 자식 클래스에서 재정의하는 것이 메소드 오버 라이딩. class Person: def show(): print('Person!') class Student(Person): def show(self): print('Student!') Hye = Student() Hye.show() # super() super()는 자식 클래스에서 부모 ..