public class User
{
protected string userid;
protected string name;
// Constructor to initialize User Info
public User( string uid)
{
UserDAL mydal = new UserDAL();
//We're going to assume that the first element is userid, second name
string accountinfo[] = mydal.getUserByID();
userid = uid;
name = accountinfo[1];
}
// Overloaded constructor for empty balance
public User()
{
//Don't Worry About This For Now
}
public void setName( string newname )
{
name = newname;
}
public string getName()
{
return name;
}
public string getUserID()
{
return userid;
}
}