ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
Which of the following is correct?
Correct Answer: B — Destructor definition starts with !
As constructor of class A is defined private and we are trying to define an object of class A which cannot call this constructor as it is private therefore the program gives an error.