B
bill tie
class Program
{
...
...
static void Main()
{
Program program = new Program();
}
}
- Is it a good practice to have a class instantiate itself?
- What is the rationale for doing it?
- Is Program a quasi singleton?
Thank you.
{
...
...
static void Main()
{
Program program = new Program();
}
}
- Is it a good practice to have a class instantiate itself?
- What is the rationale for doing it?
- Is Program a quasi singleton?
Thank you.