Information Technology Reference
In-Depth Information
public class
Employee
{
public string
FirstName {
get
;
set
; }
public string
LastName {
get
;
set
; }
public string
Name
{
get
{
return string
.Format(
"{0}, {1}"
,
LastName, FirstName);
}
}
// other details elided.
}
public class
Customer
{
public string
Name
{
get
{
return
customerName;
}
}
// other details elided
private string
customerName;
}
public class
Vendor
{
public string
Name
{
get
{
return
vendorName;
}
}