What is Data Hiding?

In this lesson, you will get familiar with a very important aspect of Object Oriented Programming called data hiding.

Introduction

In OOP, objects and classes are the basic entities. Objects are created using classes. One can observe that classes contain data members and objects are created to manipulate and access this data. To make this object-oriented system more reliable and error free, it is a good practice to limit access to the class members.

In layman’s terms, data hiding ...