Interface and Implementation
The code associated with a component is separated into two files.
- The interface file describes how to use the component.
- The implementation file contains the actual code to perform the actions.
The class description is divided into two parts.
- Public: behaviors and data fields that users of the data abstraction can access.
- Private: behavior and fields that are accessible only within the component and are off-limits to other users.