using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication46
{
class Program : Imyinterface
{
string id = "";
string name = "";
public string ID
{
get
{
return id;
}
set
{
id = value;
}
}
public string Name
{
get
{
return name;
}
set
{
name = value;
}
}
public void Showinfo()
{
Console.WriteLine("编号\t 姓名");
Console.WriteLine(ID + "\t" + Name);
}
static void Main(string[] args)
{
Program program = new Program();
Imyinterface imyinterface = program;
Imyinterface = "TM";
Imyinterface.Name = "C#3.5从入门到应用开发";
Imyinterface.Showinfo();
}
}
}