Example & Tutorial understanding programming in easy ways.

What is Encapsulation in C++ programming language?

Encapsulation:

-Encapsulation is a technique of wrapping the data members and member functions in a single unit. 

-It binds the data within a class, and no outside method can access the data. 

-If the data member is private, then the member function can only access the data.

Read More →