多做题,通过考试没问题!

微软认证考试

睦霖题库>其他计算机考试>微软认证考试

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
答案解析:
进入题库查看解析

微信扫一扫手机做题