C#

readonly keyword indicates that the variable can not be modified.

class human
{
public int age;
public string sex;
private string race;
public human(int a, string s) {age=a;sex=s;}
}



endmemo.com © 2017  Terms of Use | Home