#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http

제목class 3 (20 겨울 계절 기출)2021-12-01 22:06
작성자

제가 이렇게 했는데 print(a.getStudentID)를 하니까 StudentID가 defined라고 나오네요. 클래스변수로 설정하고 모두 쓰이게 하려고 한건데 왜 이렇게 결과가 나오는건가요? Member method를 쓸 때 return 값을 무조건 self.~~로 두어야하나요?

댓글
이전[re]File 질문2021-12-05
다음[re]class 3 (20 겨울 계절 기출)2021-12-05