|
using System;
using System.Collections.Generic;
using System.Text;
namespace Test
{
class DataClass
{
private int id;
private string firstName;
private string lastName;
private string position;
private bool isAlive;
public DataClass() { }
public DataClass(int id, string firstName, string lastName, string position, bool isAlive)
{
this.id=id;
this.firstName=firstName;
this.lastName=lastName;
this.position=position;
this.isAlive = isAlive;
}
public int Id
{
get { return id; }
set { id = value; }
}
public string FirstName
{
get { return firstName; }
set { firstName = value; }
}
public string LastName
{
get { return lastName; }
set { lastName = value; }
}
public string Position
{
get { return position; }
set { position = value; }
}
public bool IsAlive
{
get { return isAlive; }
set { isAlive = value; }
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.