Constructor

A constructor is a special type of subroutine called to create an object. It prepares the new object for use, often accepting arguments that the constructor uses to set required member variables.

Want to Learn

Top 3 Tutorials For Constructor