All pastes #1061804 Raw Edit

Mine

public text v1 · immutable
#1061804 ·published 2008-07-04 00:13 UTC
rendered paste body
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;
	}
}