adplus-dvertising
frame-decoration

Question

Which among the following is correct syntax for the destructors?

a.

classname()

b.

()classname

c.

~classname()

d.

-classname()

Answer: (c).~classname()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which among the following is correct syntax for the destructors?