Constructors
← Back to Classes & Objects
Special methods called when creating a new object instance. Constructors initialize the object’s state, validate arguments, and ensure the object is in a consistent state before use.
← Back to Classes & Objects
Special methods called when creating a new object instance. Constructors initialize the object’s state, validate arguments, and ensure the object is in a consistent state before use.