.

...
Last edited on
Chaning public to private would definitely create alot of problems. I don't think changing private to public would make a difference to the compiling.
Why would public to private create issues? Sorry, I'm kind of a beginner.
Because if everything was private you wouldn't be able to access those functions. Only the class functions can use private functions. Since you change all the public functions to private there is no public function that you can access to use those private functions. Its basically a useless class since everything is hidden.
Got it, thanks for the answer!
Please do not remove your posts. It is rude and there might be people who will search forum for similar question.

Question saved from google cache: http://webcache.googleusercontent.com/search?q=cache:http://www.cplusplus.com/forum/general/112677/
mkmets155 wrote:
Question about Classes

I was just curious what would happen if you have a working program with several classes and you decided to change all the "private" access specifiers to "public." Would the program run the same way? How about changing all "publics" to "private"?
Last edited on
Topic archived. No new replies allowed.