In the following familiar method invocation what is the actu

In the following familiar method invocation, what is the actual implicit parameter name?

yourAccount.transfer(myAccount, amt);

A) myAccount

B) yourAccount

C) amt

D) Bankaccount

E) this

Solution

here B) yourAccount is the actual impicit parameter name.

Reason:

The object variable before the method name in the method call are called implicit parameters

In the following familiar method invocation, what is the actual implicit parameter name? yourAccount.transfer(myAccount, amt); A) myAccount B) yourAccount C) am

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site