摘要:
第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 阅读全文
posted @ 2014-11-24 12:43
梦在旅途
阅读(816)
评论(4)
推荐(0)
浙公网安备 33010602011771号