选择题:在下面的例子里 using System; class A { public A(){ PrintFields(); } public virtual voi

  • 题目分类:计算机类
  • 题目类型:选择题
  • 查看权限:VIP
题目内容:
在下面的例子里

using System;

class A

{

public A(){

PrintFields();

}

public virtual void PrintFields(){}

}

class B:A

{

int x=1;

int y;

public B(){

y=-1;

}

public override void PrintFields(){

Console.WriteLine("x={0},y={1}",x,y);

}

当使用new B()创建B的实例时,产生什么输出?




参考答案:

技术开发合同中,因出现无法克服的技术困难,致使研究开发失败或者部分失败的,应合理分担风险。下列

技术开发合同中,因出现无法克服的技术困难,致使研究开发失败或者部分失败的,应合理分担风险。下列

查看答案

Michael is now merely a good friend.

Michael is now merely a good friend.A:largely B:barely C:just D:rarely

查看答案

下面的例子中 using System; class A { public static int X; static A(){ X=B.Y+1; } } c

下面的例子中 using System; class A { public static int X; static A(){ X=B.Y+1; } } c

查看答案

现代生活中人与人之间需要真情,需要友谊。在人际交往中要获得和发展友谊,应该做的有( ) A

现代生活中人与人之间需要真情,需要友谊。在人际交往中要获得和发展友谊,应该做的有( ) A

查看答案

共用题干

共用题干 Traffic in Our CitiesThe volume of traffic in many cities in the world today continues to expand.This causes many problems, including serious air pollution,lengthy delays,and the greater risk___________(51)accidents.Clearly, something must be done,b

查看答案