using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
public interface IStudent
{
void StudyBase();
}
public interface IEmployee
{
void Work();
}
public interface IInforStudent : IStudent
{
void StudySpecial();
}
public class InfoStudent : IEmployee,IInforStudent
{
public void Work()
{
Console.WriteLine("你的工作任务必须完成");
}
public void StudySpecial()
{
Console.WriteLine("你是计算机专业的学生,必须学习");
}
}
class Program
{
static void Main(string[] args)
{
InfoStudent student = new InfoStudent();
student.Work();
student.StudySpecial();
}
}
}