About Question enthuware.ocpjp.i.v11.2.3153 :
Posted: Mon Aug 10, 2020 3:11 pm
Hello!
Code: Select all
ai.amazingMethod(AmazingInterface.value, AmazingClass.value);
Why? I absolutely don't understand this, AmazingClass.value is just a static field. Compiler says: "Expected 1 arguments but found 2". Maybe ai cannot use AmazingClass's amazingMethod?ai is a reference of type AmazingInterface. It cannot used access AmazingClass.value field.