Which function is ran when an object is instantiated?
The function is called init. This is the constructor, which is used to initiate the attributes of the object and allows arguments to be passed upon instantiation.
KC
The function is called init. This is the constructor, which is used to initiate the attributes of the object and allows arguments to be passed upon instantiation.