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 © 2024  | Terms of Use | Privacy | Home