4 ms·
Both are explicit. One uses a keyword the other uses capitalization. The compiler will still complain if you use a private method in either one. You can argue a
by zaphar 9y ago
Both are explicit. One uses a keyword the other uses capitalization. The compiler will still complain if you use a private method in either one. You can argue about whether one is more or less readable than the other but you can't say they aren't explicit.
- andyfleming 9y agoYeah, I guess you are technically correct as far as being explicit. Maybe intuitive is a better description. A newcomer could read public/private and quickly understand its meaning as opposed to capitalization being a learned convention.