public WordCard(string word, string translation) { Word = word; Translation = translation; timesAnsweredCorrectly = 0; Example = new ExampleOfWordUsage("", ""); // empty strings if no examples }
public WordCard(string word, string translation, string example, string exampleTranslation) { Word = word; Translation = translation; Example = new ExampleOfWordUsage(example, exampleTranslation); timesAnsweredCorrectly = 0; }
public WordCard() { /*This is for XmlSerializer - it -requires default ctor*/ word = ""; translation = ""; example = new ExampleOfWordUsage("", ""); timesAnsweredCorrectly = 0; }