I was just thinking: our professor has told us that there are no private methods in C (which is true), but can't I 'simulate' a private method by putting its declaration in the .c file instead of the .h file?
I mean, this would result in people only being able to access certain methods (unless they imported the .c file as well) but not ones they should keep their hands off.
Right?




Reply With Quote