Constructors
Lua++ supports two different kinds of constructors by default: implicit
and explicit
. Explicit constructors require the parameters to be wrapped in parentheses, while implicit
allow the value to be directly passed as shown in the following examples:
Last updated