Skip to content

Latest commit

 

History

History
13 lines (12 loc) · 588 Bytes

GetterAndSetter.md

File metadata and controls

13 lines (12 loc) · 588 Bytes

Getter와 Setter Method

캡슐화와 관련되어 있는 Getter와 Setter Method

  1. 기본적인 변수의 값 할당 방식을 알아본다.
  2. Getter와 Setter를 알아본다.
  3. 왜 Getter와 Setter를 사용해야하는지 알아본다.
  4. Getter와 Setter 사용 실수를 알아본다.
  5. 각 Data 별 Getter와 Setter의 구현법을 알아본다.

변수의 값 할당

Getter와 Setter

Getter와 Setter를 사용해야하는 이유

Getter와 Setter를 사용하는데에 나오는 실수들

데이터 타입별 Getter와 Setter