摘要:
第1到3题解答如下:
public enum QuestionType
{
Text = 0,
MultipleChoice = 1
}
public interface IQuestion
{
string Title { get; set; }
QuestionType Category { get; }
}
public abstract class QuestionBase : IQuestion
{
public string Title { get; set; }
public abstract QuestionType Category { get; }
public virtual string GetAnswer()
{
return "默认答案";
}
}
public 阅读全文