정보 은닉 (Information Hiding)
정보 은닉 (Information Hiding)
- 객체지향 언어의 지원
- C++
- Eiffel
- C++ 공용 인터페이스
- class point {
int xPosition;
int yPosition;
colorType color;
public:
void move (int x, int y);
void setColor (colorType c);
void penUp ( );
void penDown ( );
. . .
}
xPosition: 10
yPosition: 20
color: blue
OPERATIONS
DATA
Public Interface
Notes: