阅读下列的程序
A: InnerI=newInner();i.method();
B: Outer.Inneroi=newOuter.Inner();oi.method()
C: Outero=newOuter();o.method();
A: InnerI=newInner();i.method();
B: Outer.Inneroi=newOuter.Inner();oi.method()
C: Outero=newOuter();o.method();
举一反三
- 在下面的类中,合法重载的方法是( ) public class Q1{ public void method(int i){} } A: private void method(int i){} B: public void method(int k){} C: public int method(int i){} D: private float method(float f){}
- 下面( )代码正确的声明了一个类方法(静态方法)。 A: public int method(int i) B: protected method(int i) C: public static method(String s) D: protected static void method(Integer i)
- If a method has a parameter description, where should the default value of the parameter be given? A: Method definition B: Method calls C: Method body D: Method calls or method definition
- What is not the basic statistical research method in the following method is ( ) A: Test method B: Statistical index method C: Mass Observation Method D: Statistical grouping
- The recognized methods for consolidating the financial reports of an MNC are( )。 A: short/long term method, current/future method, flexible/inflexible method, and economic/noneconomic method. B: current/noncurrent method, monetary/nonmonetary method, short/long term method, and current/future method. C: current/noncurrent method, monetary/nonmonetary method, temporal method, and current rate method. D: temporal method, current rate method, flexible/inflexible method, and economic/noneconomic method.