News

In part 3 of this series on the C++ Core Guidelines, we explore constructors and why, rather than writing a default constructor, you should use in-class member initializers, a feature added in C++ 11.
Constructors have one purpose in life: to create an instance of a class. This can also be called creating an object, as in: Platypus p1 = new Platypus(); The purpose of methods, by contrast, is much ...