What is Encapsulation and Data Hiding?
A Class is combination of different data types and its method is known as Encapsulation. In Class we use many data types to create any Class. We can say that Class uses many data types and as we know class is user defined data type. So, Class hide the system defined data types to create itself. In other word Data Hiding is a terminology to hide the system defined data types in Class.
Comments
Post a Comment