Skip to content

Glossary: C++ Basics

Constructor

Also written: constructors

A member function with the class's name and no return type that runs when an object is made, to set it up safely. It can throw to stop a bad object from existing.

Where the book teaches it

Related terms

DestructorMember initializer listexplicitDefault constructor