Constructors
  • Constructors are special member functions that are executed whenever we create new objects of a class type.
  • The job of a constructor is to ensure that the data members of each object start out with sensible initial values.
  • Constructors don't have a return type.
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.