Question: What is the function of a finalizer or destructor?
- To relinquish resources that are no longer needed
- To delete a variable name
- To reset an attribute value
- To hold space, even after an object is no longer being used
Answer: The correct answer of the above question is Option A:To relinquish resources that are no longer needed