namespace 计算器{ class student //这是类 { public int age = 18; //18为字段 public int xuehao = 20118; int add(int a, int y)//这是个方法 就是运算步骤 { return a + y; } }}