A parameterized constructor is a word which directly or indirectly calls new or boa, but instead of passing a literal class symbol, it takes the class symbol as an input from the stack.
Parameterized constructors are useful in many situations, in particular with subclassing. For example, consider the following code:
The two constructors depend on the implementation of vehicle because they are responsible for initializing the occupants slot to an empty vector. If this slot is changed to contain a hashtable instead, there will be two places instead of one. A better approach is to use a parameterized constructor for vehicles: