在下面的类声明中,属于私有字段的是( )
classPerson
{
public string name;
public string sex;
private int age;
private double weight;
}
Aname sex
Bage
Cweight
Dage weight
相关试题
-
在下面的类声明中,属于私有字段的是( ) classPerson { public string name; public string sex; private int age; p
-
type; string No; private int heavy; double speed; protected string owner; public string price;
-
列程序的运行结果是: public class test{ private String[] data={10,10.5}; public void fun(){ double s=
-
在C#中,以下代码,输出结果为:() class Hero { private string name; private int attack;
-
在C#中,根据以下代码,描述正确的是() public class Student { private string name; public string Name