单选题:How can a programmer add a separator to a Menu? Assume there is
How can a programmer add a separator to a Menu? Assume there is a `Menu` object called `myMenu`. @[C](2)
A. myMenu.add(MenuItem.SEPARATOR);
B. myMenu.add(new MenuItem("-"));
C. myMenu.addSeparator();
D. None of the above();
A.myMenu.add(MenuItem.SEPARATOR);
B.myMenu.add(new MenuItem("-"));
C.myMenu.addSeparator();
D.None of the above();
答案:C
A. myMenu.add(MenuItem.SEPARATOR);
B. myMenu.add(new MenuItem("-"));
C. myMenu.addSeparator();
D. None of the above();
A.myMenu.add(MenuItem.SEPARATOR);
B.myMenu.add(new MenuItem("-"));
C.myMenu.addSeparator();
D.None of the above();
答案:C