ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
How destructor overloading is done?
Correct Answer: B — By changing the number of parameters
In this program, we have defined a global variable an outside main function for which constructor will be called. Now as a is a global variable, therefore, the call for constructor will be before the main function hence constructor called will be printed before the Main function.