In C++, a constructor is a special function that must be invoked when an object is created. Its objective is to initialize a new object to a valid state before any processing occurs using the object.
An initializer that makes complex class initialization possible. A class block initializer consists of the static keyword, an open brace character, initialization code, and a close brace character.