> To maybe explain a little more...

Thank you.

> With classes, this happens whenever one class has a constructor that > takes some other type as an argument. So, for example, suppose we
> have:
>
>   class A {
>        A();
>        A(int);
>    };
>
> So class A has two constructors: A default one, and one that takes an
> int.

This feature was confusing me when I started with LyX and thus with C++. I learned Pascal and ObjectPascal (a.k.a. Delphi) at school. This language only allows one constructor and I was taught that this is much safer and that one should also not use more than one constructor in other programming languages. This statement was obviously incorrect.

regards Uwe

Reply via email to