Constructor (object-oriented programming): Difference between revisions

Content deleted Content added
m Copy constructors: Cleanup and typo fixing, typo(s) fixed: doesn’t → doesn't (2)
m Parameterized constructors: fix: broken code
Line 26:
Example::Example() = default;
 
Example::Example(int x, int y) : x_(x), y_(y) {}
</syntaxhighlight>