相关题目
执行下面的代码,表述正确的是( )。
Random rd=new Random();
int a=rd.Next(0,5);
Console.WriteLine(a);
通过string类的方法,将stringstr1="MICROSOFTVISUALSTUDIO2008"转换成"microsoftvisualstudio2008",正确的语句是( )。
执行doublex=Math.Ceiling(-3.75)语句,x的值为( )。
要计算5的7次方,可以利用System.Math类提供的静态方法是( )。
在System.Math类用于数学计算的静态方法中,返回类型为decimal的方法是( )。
下列类定义代码,当用来声明对象car,并用Carcar=newCar();实例化后,可以通过car对象直接赋值的字段是( )。
publicclassCar
{
public string type;
string No;
private int heavy;
double speed;
protected string owner;
public string price;
private string color;
}
类的属性中,能够修改字段值的代码块是( )
在下面的类声明中,属于私有字段的是( )
classPerson
{
public string name;
public string sex;
private int age;
private double weight;
}
在默认的情况下,省略的类访问修饰符是( )
在面向对象程序设计的概念中,对类(class)的描述,错误的是( )。
