hi all,
i quote a difference between the calls of constructors <class name> and
<class name>()...
for exemple, if i use this kind of class:
class MyClass{
int data;
public:
MyClass( int pData = 0){ data = pData;}
then, i declare:Quote:};
MyClass Obj1;
MyClass Obj2( 5);
MyClass Obj3();
I realized that Obj1 and Obj2 call the defined constructor, but Obj3 is an
empty instance and calls no constructor...
It appears to be strange for me, as i believed the Obj3 would call my
constructor.
Can you explain me that. Maybe there was something i didn't understand...
thanks
-nicoV-
PS: i'm using a borland 5.02 IDE