Help with web form

Apr 10 2010 3:39 PM
Hey guys,

I am fairly new to C#, OOP, and forms. I am using Visual Studio 2008. I need to for an assignment create an "Address" that has the following fields: Street, City, State, and Zip Code. Then I need to create a web form which enters info into the "Address" class, which prints a mailing address. I thought the main program creates an instance of a class, not writing into a class, am I misunderstanding what he is saying? Please let me know how would go about doing something like this.

Below is the "Address" class, or should I just say just the fields.
 

using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// 
/// Summary description for Address
/// 
public class Address
{
private string street;
private string city;
private string state;
private string zipcode;

public Address()
{
//
// TODO: Add constructor logic here
//
}
} 


Answers (3)