Which of the following functions should be the destructor function for user…

PYQ DSSSB 2022

Which of the following functions should be the destructor function for user defined class Person in C++?

  1. A.

    Person(string s)

  2. B.

    Person()

  3. C.

    ~Person(string s)

  4. D.

    ~Person()

Attempted by 1436 students.

Sign up free to check your answer

Sign up free

Explore the full course: Dsssb Tgt Computer Science Paper 2

Loading lesson…