* Kavya:
Suppose I have class MyClass. Then which will be termed as explicit
call to constructor.
MyClass( );
or
MyClass object;
object.MyClass( );
The second line of the latter isn't valid code.
The first is an example of what the standard calls an explicit
constructor call, while the first line of the second example is a
declaration with an implicit constructor call.
Used as a stand-alone expression statement (some illuminating context
would be nice!) "MyClass();" creates a temporary of MyClass type and
calls the default constructor on that temporary.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?