Question discussion

Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?

289523Medium 1 reply 534 views
0
Which is an equivalent code to invoke a function m of class o that expects two arguments x and y?
  • Ao(x,y);
  • Bo.m(x) && o.m(y);
  • Cm(x,y);
  • Do.m(x,y);
Correct answer: D

Discussion 1

0
CCommunity
o.m(x,y);

The code above is an invocation expression: it includes a function expression o.m and two argument expressions, x and y.