//在電腦里仿真成功了,但在拼題里提交時編譯出錯不知道為什么,大佬幫忙看一下代碼!糾糾錯!!!
using System;
namespace _3_2
{
class Program
{
static void Main(string[] args)
{
testA A = new testA();
testA B = new testA("C#6.0");
}
}
class testA
{
private readonly string v;
public testA()
{
Console.WriteLine("C#");
}
public testA(string v)
{
this.v = v;
Console.WriteLine(v);
}
}
}
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/274312.html
標籤:C#
