Q. Under what conditions a destructor destroys an object? (Solved)
1. scope of existence has finished
2. object dynamically assigned and it is released using the operator delete.
3. program terminated.
4. both a and b.
- d. both a and b.
1. scope of existence has finished
2. object dynamically assigned and it is released using the operator delete.
3. program terminated.
4. both a and b.