Question.3
Three objects are created in sequence:
void func() { Lock a; // Created 1st Lock b; // Created 2nd Lock c; // Created 3rd }
In what order are they destroyed?
Select Answer
a, b, c -- same order as creation
c, b, a -- reverse order of creation (LIFO)
Undefined -- compiler chooses
All three simultaneously