hiding private member in header file
I develop my own string class. I have two files String.cpp and String.h. I can make static library and give others only header file and .lib file to hide my source code.
But in .h file one can see what my class is consisting of and simply change private to public access. So that private access specificator is just compiler trick. How can I expose only public methods? How this can be achived? I'm using VC++ .Net and like to see some code example or to get some usefull link to follow.
Thanks very much.