标签:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Factory
{
public class person
{
int yanjing;
int erduo;
int bizi;
int foot;
int shou;
string sex;
void Speak()
{
//
}
void Eat()
{
//
}
public void printSex()
{
//
}
}
public interface Career
{
void positon();
}
public class Chief : person, Career
{
public void positon()
{
Console.WriteLine("我是习大大主席");
}
}
public class Secretary : person, Career
{
public void positon()
{
Console.WriteLine("我的职位是秘书");
}
}
class Program5
{
//static void Main()
//{
// Career chief = new Chief();
// chief.positon();
// Console.WriteLine();
// Career secretary = new Secretary();
// secretary.positon();
// Console.ReadLine();
//}
}
}
标签:
原文地址:http://www.cnblogs.com/pcc5201314/p/5044208.html