In which case is it mandatory to provide a destructor in a class ?

PYQ RPSC Programmer 2013

In which case is it mandatory to provide a destructor in a class ?

  1. A.

    Almost in every class

  2. B.

    Class for which two or more than two objects will be created

  3. C.

    Class for which copy constructor is defined

  4. D.

    Class whose objects will be created dynamically

Attempted by 2 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…