aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming Concepts
  • Which function is used to destroy the memory of an object?
Multiple choice

Which function is used to destroy the memory of an object?

  1. Constructor

  2. Destructor

  3. Virtual function

  4. Friend function

  5. Static function

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

It is used for this purpose.

Keep practicing — related questions

  • Which of the following is a special member function that is automatically called whenever an object of the ...
  • Whenever an object is destroyed which function will be invoked automatically?
  • Which of the following special member functions is executed when an object of that class is destroyed?
  • Which of the following functions is used in C++ for the automatic initialization of class objects?
  • Which of the following functions is used to release the allocated memory which is no longer required?
  • Name a function in C++ which provides initial values to the objects.
  • A __________function is used for accessing the non-public members of a class.
  • With every use of a memory allocation function, what function should be used to release allocated memory wh...
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Object-Oriented Programming (2239 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy