Question: 1 . In the following constructors when I invoke object.transfermoney ( 2 , X ) what will happen? Code public void transfermoney ( ) {
In the following constructors when I invoke object.transfermoneyX what will happen?
Code
public void transfermoney
System.out.printlnHSBC transferring money";
public void transfermoneyString To int amount
System.out.printlnHSBC transferring amount to To;
public void transfermoneyint To int amount
System.out.printlnHSBC transferring amount to To;
a Code prints HSBC transferring money
b Code prints HSBC transferring X to
c Code prints HSBC transferring to X
d Code fails
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
