1.From inside the destructor.
2.From inside the constructor.
3.From inside the main().
4.Both A and B.
Answer:4