Posts: 266
Threads: 239
Joined: Apr 2011
) 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?
Posts: 9,583
Threads: 8,089
Joined: Apr 2011
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.