Skip to content

Object-Oriented Programming (OOP)

The concept in which a special method automatically invoked when an object is destroyed, used to release resources is best known as which of these terms?

Difficulty: Medium

About this MCQ

This Medium Object-Oriented Programming (OOP) MCQ checks one syllabus fact.

The question is: “The concept in which a special method automatically invoked when an object is destroyed, used to release resources is best known as which of these terms?”

The accepted answer is D. Destructor. Destructor refers to a special method automatically invoked when an object is destroyed, used to release resources.

Correct answer

D. Destructor

Explanation

Destructor refers to a special method automatically invoked when an object is destroyed, used to release resources.

Source: Object-Oriented Programming (OOP) Official Reference Guide

Tags: computer science, oop, object-oriented programming, software design

Submitted by: MCQsHub Editorial

Related MCQs

More Object-Oriented Programming (OOP) MCQs