试题详情
单项选择题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=new Stack<string>();

B、Stack undoBuffer=new Stack();

C、Queue<string> undoBuffer=new Queue<string>();

D、Queue undoBuffer=new Queue();

  • A
  • 关注下方微信公众号,在线模考后查看

热门试题