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

posted on 2008-01-08 16:59  飞天舞者  阅读(158)  评论(0编辑  收藏  举报

导航

For more information about me, feel free email to me winston.he@hotmail.com