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?()
- AStack<string> undoBuffer=new Stack<string>();
- BStack undoBuffer=new Stack();
- CQueue<string> undoBuffer=new Queue<string>();
- DQueue undoBuffer=new Queue();