You are creating an undo buffer that stores data modifications. You need to ensure that the undo functionality undoes the most recent data modifications first. You also need to ensure that the undo buffer permits the storage of strings only. Which code segment should you use?

You are creating an undo buffer that stores data modifications. You need to ensure that the undo
functionality undoes the most recent data modifications first. You also need to ensure that the
undo buffer permits the storage of strings only. Which code segment should you use?

A. Stack<String^> undoBuffer = gcnew Stack<String^>();
B. Stack undoBuffer = gcnew Stack();
C. Queue<String^> undoBuffer = gcnew Queue<String^>();
D. Queue undoBuffer = gcnew Queue();


Answer: A 

No comments:

Post a Comment