PDA

View Full Version : how the information hidden within an object can be assessed either dot operator conne



saneha
05-02-2011, 06:37 AM
) i want to know that how the information hidden within an object can be assessed either it is get through its interface or its private member function?

2)is the dot operator connect the class object and a member of that class?

Vuhelper
05-02-2011, 06:37 AM
Hidden/ Private information of the class isn't accessible outside the class. Inside the class there are some member functions that are only allowed to access these Hidden information . Now, if these member functions are declared "Public" then, these functions are used by the Objects of the same class and through these functions Objects can act something over the hidden/Private data members.
Objects alone can't allow to access these hidden members without taking help from member functions of that particular class.