Image

Listens: one-winged angel

Hello all. I just joined this community because i'm having some trouble with a bit of code.



[edit] sorry, i posted parts of two seperate projects earlier, so it didn't make much sense.

private int acctNumber;
private double balance;
private String name;
private String password;

public Account (String ?, int account, double ?) {
name = ?
acctNumber = ?
password = ?
balance = 0;


As i've not had much experience with custom constructors, i'm unsure of how to set all the reference variables so that in my main method class, i can allow the user the ability to change them at will throughout a banking program. (yes, i know about private modifier, i'll change that later)

Also, i'm unsure of how to utilize this constructor in another class so that it executes properly. Constructor syntax and i have never gotten along.



any help would be greatly appreciated.