CheckingAccount( String accNumber, String holder, int start )
{
initialization of data
}
Since parameters are used only inside the constructor, they often have shorter, less descriptive names than the names given to more permanent data.
So far, the class looks like this:
public class CheckingAccount
{
// instance variables
private String accountNumber;
private String accountHolder;
private int balance;
//constructors
CheckingAccount( String accNumber, String holder, int start )
{
= ;
= ;
= ;
}
methods
}
Next, complete the constructor with three statements that initialize the object's data.
Complete the constructor.