What is the purpose of a destructor in OOP?
PYQ Bihar STET 2025PYQ Bihar STET 2024
What is the purpose of a destructor in OOP?
- A.
To create instances of classes
- B.
To handle exceptions
- C.
To free up resources when an object is destroyed
- D.
To define default values for properties
Attempted by 1487 students.
Sign up free to check your answer
Sign up freeExplore the full course: Bihar Stet Computer Science Complete Course
Loading lesson…

