How classes are secure than structures ?
Posted
by Asad Hanif
on Stack Overflow
See other posts from Stack Overflow
or by Asad Hanif
Published on 2010-04-14T07:44:45Z
Indexed on
2010/04/14
7:53 UTC
Read the original article
Hit count: 160
c++
Structure's member are public by default ans class's members are private by default. We can access private data members through a proper channel (using member function). If we have access to member functions we can read/write data in private data member, so how it is secure...we are accessing it and we are changing data too.....
© Stack Overflow or respective owner