.

Data Encapsulation in C++

Encapsulation is defined as wrapping of data and information in same unit. It is defined as binding of information to protect from data and functions which manipulates the data. The finance section handles all the financial transaction that keeps the record of all the data that is related to the finance.

Encapsulation is also lead to data abstraction and dynamic binding.

Example

.