Private Method Pattern

Services offered by a class are in the form of its methods, which constitute the overall behavior of its objects. But not all methods of a class are always meant to be used by external client objects. Those methods that offer defined services to different client objects make up an object’s public protocol and are to be declared as public methods. Some of the other methods may exist to be used internally by other methods or inner classes of the same object. The Private Methods pattern recommends designing such methods as private methods.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License