cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Cosructor without ()
Cosructor without ()
Jun 21, 2010 at 7:40am UTC
briler
(2)
In my code i have a call to a constructor and the call is without ().
object * t = new object;
the constructor is without parameters. the code compiles and working.
is it any diffrent than:
object * t = new object();
?
Jun 21, 2010 at 8:23am UTC
KarlisRepsons
(136)
http://www.cplusplus.com/forum/general/24842/
Jun 21, 2010 at 8:56am UTC
briler
(2)
thanks!
Topic archived. No new replies allowed.