在C#中,以下代码运行结果是( )public class Customer { public string name; public int age; public int Age { set { age = value; } } } class Program { static void Main(string[] args) { Customer liu = new Customer(); liu.Age = 300; Console.WriteLine(liu.Age); } }
A300
B100
C0
D代码出现错误
相关试题
-
在C#中,以下代码运行结果是( )public class Customer { public string name; public int age;
-
在C#中,以下代码,输出结果为:() class Hero { private string name; private int attack;
-
: public class People { int age = 8; public int Age { get { return age; } } } 执行以下语句
-
C#中下列代码运行结果是() public class Student { public virtual void Exam() {
-
C#中下列代码运行结果是() public abstract class A { public A() { Console.Write