tips for private constructor

    when one class just declares its private constructor , then it’s not allowed to derive another class from which  and also create an instance of which. Therefore, private construtor class usually only is  such kind of  class which has only static methods to prevent it being instantiation
原文地址:https://www.cnblogs.com/Winston/p/1030685.html