Which of the following options best describes the truthfulness of the given…

PYQ DSSSB 2022

Which of the following options best describes the truthfulness of the given statements with reference to destructors?

(i) Destructors are the last member function called for an object and they are called by the compiler itself.

(ii) A destructor can be declared in any section of the class.

  1. A.

    (i)-true, (ii)-false

  2. B.

    (i)-false, (ii)-false

  3. C.

    (i)-true, (ii)-true

  4. D.

    (ii)-false, (i)-true

Attempted by 589 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…