Prev article
Newer
Next article
Older
Use private for your implementation.
Use protected for your public implementation.
Protected members are neither part of your public interface nor part of your encapsulated implementation. It is implementation that you expose to your subclasses (derived classes).
Use public for your interface.
See also:
Ads by Google
© Richard McGrath