"Sree" <no************@f-m.fm> wrote in message
news:20******************@foorum.com...
Also, it is doubtfull, that the compiler offers you a default constructor
and destructor, you need to explicitly put that in your code. There are
wizards in IDEs which will help you in this, but that is offtopic here.
--
I think you're misunderstanding. The "default" constructor and/or
destructor are created if needed, but they are not created as source code
that gets inserted in your .cpp file. They are created in the resulting
object code, however. Suppose, for example, that your class contained and
instance of another class. The constructor for that contained class has to
be called, and that's done via the default constructor that's created for
your class (assuming you haven't provided one).
-Howard