Private Constructor

sharmila's Avatar, Join Date: Mar 2006
Contributor
How to invoke a function in a class which is having private constructor.

Eg:
Code:
class A
{
     private A(){}
     public void fun(int a )
     {
              ...................
              .................
      }
};
In this example if we want to invoke fun(int), how can we do that?
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
You already have a discussion going at Private Constructors. Please do not create the same thread over and over again,