Which of the following gets called when an object goes out of scope?

A. constructor
B. destructor
C. main
D. virtual function

Submitted by: Muhammad
Option B
destructor
Submitted by: Muhammad

Read Online C++ Constructors Job Interview Questions And Answers