Question: Consider base class X and derived class Y, where Y is derived from X. The order of destructor execution when an object of type
Consider base class X and derived class Y, where Y is derived from X. The order of destructor execution when an object of type Y is deallocated or goes out of scope is (A) X then Y (B) (C) (D) (E) Y then X Y and X in parallel all of the above none of these are correct
Step by Step Solution
3.38 Rating (154 Votes )
There are 3 Steps involved in it
B In reverse order of construction First constructed ... View full answer
Get step-by-step solutions from verified subject matter experts
Document Format (2 attachments)
60940bd969a4d_210717.pdf
180 KBs PDF File
60940bd969a4d_210717.docx
120 KBs Word File
