Constructor: Redirecting constructors

Redirecting constructors

Sometimes a constructor’s only purpose is to redirect to another constructor in the same class.

A redirecting constructor’s body is empty, with the constructor call appearing after a colon (:).

Related concepts

Redirecting constructors

Constructor: Redirecting constructors — Structure map

Clickable & Draggable!

Constructor: Redirecting constructors — Related pages: