"super()" enables you to access the methods and members of a parent class without referring to the parent class bt name.

For a single inheritance situation the first argument to super() should be the name of the current child class calling super(), and the second argument should be self (that is, a reference to the current object calling super()).

 

"super()" in Python3 : Python 3 adds a new simpler super(), which requires no arguments

반응형

'스타트업 > 컴퓨터' 카테고리의 다른 글

[docker] 도커 실행 명령어  (0) 2020.02.07
[Python] AssertionError  (0) 2020.02.05
[컴퓨터] 502 Bad Gateway error  (0) 2020.01.28
Daemon  (0) 2020.01.28
[Linux] 권한 관리(chmod 등)  (0) 2020.01.23

+ Recent posts