Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C# (http://www.go4expert.com/forums/c-sharp/)
-   -   Private Constructor (http://www.go4expert.com/forums/private-constructor-t17327/)

sharmila 4May2009 17:00

Private Constructor
 
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?

shabbir 4May2009 17:03

Re: Private Constructor
 
You already have a discussion going at Private Constructors. Please do not create the same thread over and over again,


All times are GMT +5.5. The time now is 07:35.