Complete the following program to demostrate use of local variables.
Will amount remain same? (Yes or No) and why?
1.
public class CheckingAct
{
private String actNum;
private String nameOnAct;
private int balance;
. . . .
public void processDeposit( int amount )
balance = balance + amount ;
}
// modified toString() method
public String toString()
return "Account: " + actNum + "\tName: " + nameOnAct +
"\tBalance: " + amount ;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here