I feel I know what this is but I've been drawing a blank for an hour now.. How do you create an object of a class using an implicit constructor call? and how do you create an object with an explicit constructor call? both times with all arguments.
This is a discussion on Help with implicit and explicit constructor calls within the C++ Programming forums, part of the General Programming Boards category; I feel I know what this is but I've been drawing a blank for an hour now.. How do you ...
I feel I know what this is but I've been drawing a blank for an hour now.. How do you create an object of a class using an implicit constructor call? and how do you create an object with an explicit constructor call? both times with all arguments.
Implicit constructors are any constructor that you can call using the assignment operator, so that it looks like initialization of a built in type. Explicit constructor calls are like implicit constructor calls, except the left-hand side of an implicit constructor call is actually an argument list (in between parens) and thus the = is gone
Originally Posted by phantomotap