Discuss Forum

1. which of the following is the destructor for the class Vehicle?

  • A. *Vehicle ()
  • B. *Vehicle ()
  • C. *Vehicle ()
  • D. *Vehicle ()

Answer: Option B

Explanation:

A destructor class is a special member function of a class that is executed whenever an object of it’s class goes out of scope or whenever the delete expression is applied to a pointer to the object of that class.

Post your comments here:

Name:
Mobile:
Email:(Optional)

» Your comments will be displayed only after manual approval.