InterviewSolution
| 1. |
Why Do We Separate Interface From Implementation? |
|
Answer» The INTERFACE is visible to the user of the class and consists of public members, which are usually member FUNCTIONS. The class user reads and modifies values in data representation by CALLING public member functions. The interface is generic in that it is not bound to any particular implementation. The interface is visible to the user of the class and consists of public members, which are usually member functions. The class user reads and modifies values in data representation by calling public member functions. The interface is generic in that it is not bound to any particular implementation. |
|