Loading practice questions
Which of the following is correct?
(B) Destructor definition starts with !
Explanation:
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.