Á¤º¸ Àº´Ð (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: