DEV Community

loading...

Discussion on: Constructors in C++

Collapse
dynamicsquid profile image
DynamicSquid

implicitly called

You could also explicitly call it:

Hello obj = Hello(2, 3);
Enter fullscreen mode Exit fullscreen mode