using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Traffic
{
public class state
{
private string nameString;
private string abbreviationString;
///
/// used to display the states in 3 different forms
/// Name ("Pennsylvania"), Abbreviation ("PA") ,
/// name and abbreviation ("Pennsylvania (PA) ")
///
///
///
public state(ref string nameArg, ref string abbreviationArg)
{
abbreviationString = abbreviationArg;
nameString = nameArg;
}
public string Name
{
get
{
return nameString;
}
}
public string Abbreviation
{
get
{
return abbreviationString;
}
}
public string FullAndAbbrev
{
get
{
return nameString + " (" + abbreviationString + ")";
}
}
}
}