Hello Guru's -

Am new to this forum, pls be kind.

Can we create / instantiate objects inside static member functions of the same class?
some thing like this?
Why would people do like this??

Class A
{

public:
A(){}
.
.
static void foo()
{

A* a = new A();

}

};

thanks