python 클래스 생성자
 객체를 생성할 때 호출되는 함수 
 객체 생성 시 초기화 작업을 위해 존재 
 변수 값을 세팅하는 작업도 포함 
Tip) 생성자를 사용 하는 이유 
: 초기값을 반드시 정해주어야 하는 경우 
Self : 객체 자신 클래스(객체)를 가리킴, 
JAVA의 this와 비슷함
 객체를 소멸시켜야할 때 호출하는 함수 
TIP ) 프로그램 종료 시 생성된 개체는 자동으로 소멸
python 클래스 생성자

More Related Content

PDF
M5 1 1
PPTX
[스프링 스터디 3일차] AOP와 LTW
PPTX
게임프로그래밍입문 7
PPTX
Logger2탄 쉽게쓰자
PDF
Effective C++ Chapter 1 Summary
PDF
Effective java 1 and 2
PPTX
Новое производство ЭМИ
PPTX
Digital marketing training institute Mumbai
M5 1 1
[스프링 스터디 3일차] AOP와 LTW
게임프로그래밍입문 7
Logger2탄 쉽게쓰자
Effective C++ Chapter 1 Summary
Effective java 1 and 2
Новое производство ЭМИ
Digital marketing training institute Mumbai

Viewers also liked (13)

PPTX
Derechos fundamentales en internet
DOCX
[DOC] savannah state university road sustainment time
PPTX
Einführung in die @4sqapi
PPT
Interviewing to get the job webinar
PPTX
Unit 27 task 3 - part 3 - weeks 1 to 4
DOC
Colin Austin CV LinkedIn
PPTX
Digital marketing training institute Mumbai
PPT
Challenges confronting the police institution in ghana by evans kojo acheampong
PDF
Mary Wagner
DOC
Savannah State University Road Sustainment Time By Mario Williams Jamila Reed...
PPT
2 gangsand
PPTX
Digital marketing-training-institute Mumbai
PPTX
Unit 27 - Task 3 - Preformer Improvement Targets
Derechos fundamentales en internet
[DOC] savannah state university road sustainment time
Einführung in die @4sqapi
Interviewing to get the job webinar
Unit 27 task 3 - part 3 - weeks 1 to 4
Colin Austin CV LinkedIn
Digital marketing training institute Mumbai
Challenges confronting the police institution in ghana by evans kojo acheampong
Mary Wagner
Savannah State University Road Sustainment Time By Mario Williams Jamila Reed...
2 gangsand
Digital marketing-training-institute Mumbai
Unit 27 - Task 3 - Preformer Improvement Targets
Ad

python 클래스 생성자

  • 2.  객체를 생성할 때 호출되는 함수  객체 생성 시 초기화 작업을 위해 존재  변수 값을 세팅하는 작업도 포함 Tip) 생성자를 사용 하는 이유 : 초기값을 반드시 정해주어야 하는 경우 Self : 객체 자신 클래스(객체)를 가리킴, JAVA의 this와 비슷함
  • 3.  객체를 소멸시켜야할 때 호출하는 함수 TIP ) 프로그램 종료 시 생성된 개체는 자동으로 소멸