public void Word(string newWordString) { //set word from string try { MemoryWord newWord = new MemoryWord(newWordString); _Value = newWord; } catch (ArgumentException ex) { throw ex; } catch (Exception exAll) { throw new Exception("Unknown Exception"); } }
public void Word(MemoryWord newWord) { // sets the word _Value = newWord; }
public MemoryLocation(string newWordString) { // create a new word from the given word string. _Value = new MemoryWord(newWordString); }