Data hiding is concept of making your data private i.e. only accesible within the class member functions.
e.g
class check
{
private:
/* This is private data cant access outside the class */
int i ;
public:
int j;
};
main()
{
Check c1;
c1.i=0; //// Error
c1.j=0; ///works fine
}
HTH
Two things to be rememeber always......
(1) Never tell all that u know
|