explain briefly the concept of encapsulation with the help of am example
Answers
Answered by
7
Answer:
The whole idea behind encapsulation is to hide the implementation details from users. If a data member is private it means it can only be accessed within the same class. ... That's why encapsulation is known as data hiding. Lets see an example to understand this concept better.
Similar questions