|
-
April 2nd, 2008, 09:10 PM
#1
object allocation question
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|