【单选题】下面()方法可以调用对象var car={run:function(){alert(120km/h);}}的run方法。
A. car[“run”] B. car[run] C. car.run D. car.run()
A. car[“run”] B. car[run] C. car.run D. car.run()
举一反三
- What does he run the car on?
- Henry's car stopped on the highway. It ( ) out of gas. A: may not run B: may have run C: must run D: ought to run
- 下列程序运行结果是( ) public class Demo { public static void main(String[] args) { Demo demo = new Demo(); demo.show(new Car() { public void run() { System.out.println("demo run"); } }); } public void show(Car c) { c.run(); } }abstract class Car { public void run() { System.out.println("car run..."); } }
- Henry’s car stopped on the highway. It ______ out of gas. A: may not run B: may have run C: must run D: out to urn
- My car won't start because the engine has. Would you like to give me a lift A: run up B: run over C: run down D: run off