Computer Science, asked by srisayan938, 5 months ago

explain with example how data can be hiding using class in c++

Answers

Answered by ItzBrainlyGirl024
6

Answer:

In C++, the class groups data members and functions under three access specifiers – private, protected and public, where private and protected members remain hidden from outside world and thereby support data hiding, so that only relevant and required information is exposed to the user and rest of the unnecessary information remains hidden from the user.  The private and protected membes remain hidden from the user and the public members form an interface by providing the relevant and needed information to the outside world, which is nothing but data hiding.  

PLZ MARK AS BRIANLIEST AND THX FOR THE SUPERB QUESTION

Answered by bhartirathore299
0

Answer:

hope so it will helpful to you

Attachments:
Similar questions