请问如下哪个方法可以将MenuBar加入Frame中?()
A:setMenu()
B:setMenuBar()
C:add()
D:addMenuBar()
出自:国家开放大学《面向对象程序设计》