캡슐화 (Encapsulation)
캡슐화는 데이터와 함수를 하나의 컴포넌트(예, 클래스)로 압축하고, 그 다음에 해당 컴포넌트에 대한 접근을 제어하여 객체에서 '블랙박스'를 만듭니다. 이 때문에, 해당 클래스의 사용자는 숨겨진 구현이 아닌 해당 인터페이스(즉, 클래스 외부에 노출된 데이터 및 함수)만 알면 됩니다.
같이 보기
- 위키백과의 캡슐화
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2024 by individual mozilla.org contributors. Content available under a Creative Commons license.