Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

implicitly defined default constructor

2 views
Skip to first unread message

ramu

unread,
Sep 1, 2009, 12:25:32 PM9/1/09
to
Hi,
Can anyone tell me at what situations the compiler will
generate the implicit defined default constructor?

Regards

Marcelo Pinto

unread,
Sep 1, 2009, 1:19:24 PM9/1/09
to

According to the Standard (12.1 7):
"An implicitly-declared default constructor for a class is implicitly
defined when it is used to create an object of its class type (1.8)."

HTH,

Marcelo Pinto

Marcel Müller

unread,
Sep 1, 2009, 1:51:14 PM9/1/09
to

If you have not defined any constructor and if it is required.


Marcel

0 new messages