Problem with constructors
From: darkstorm (manuthomas23_at_hotmail.com)
Date: 03/30/05
- Previous message: Mohd Hanafiah Abdullah: "Re: Translate C++ to C"
- Next in thread: Peter MacMillan: "Re: Problem with constructors"
- Reply: Peter MacMillan: "Re: Problem with constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 29 Mar 2005 23:13:57 -0800
I have a problem with constructors.
Consider this:
class A
{
public:
void Fun();
private:
Vector2D vec;--------(A)
};
void A::Fun()
{
Vector2D vec1;-------(B)
.
.
.
}
Here at (B) constructor for Vector2D is getting called, but at (A)
constructor is not getting called. What can be the reason?
Thanks
- Previous message: Mohd Hanafiah Abdullah: "Re: Translate C++ to C"
- Next in thread: Peter MacMillan: "Re: Problem with constructors"
- Reply: Peter MacMillan: "Re: Problem with constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|