Distinguish, differentiate, compare and explain what is the Difference between Data Hiding and Implementation. Comparison and Differences.
Difference between Data Hiding and Implementation
Data hiding is the concept of hiding the data from the other objects. It allows the data to be hidden from other objects that can prevent the use of any other objects. This way the direct manipulation of the object cant be done and the cell will hide the internal mechanism of it. A method uses an interface such as primary, public, etc. The implementation keeps the separate out data and let the user implement the structure or the data that is being provided already.
Implementation allows the object to be changes according to the requirement. It deals with objects communication via messages in which when a target object then the implementation can be done with the method. The example is given below:
class teacher
{
// properties of the teacher
String name[];
int numb;
// behavior
public void()
// this is the function that is given and it will include all your code
}
Tags:
Difference between Implementation vs Data Hiding
Data Hiding vs Implementation
Differences between Implementation vs Data Hiding
Image Credits: Freepik