I don't understand the difference between the UML realization and generalization arrow in UML class diagrams. In my code specific, I created an interface:
public interface IParser {
void Parse(string[] txtFile);
void Add(List<char> gameMap);
}
And I inherit it:
public class ParseExits : IParser {
public Dictionary<char, string> Dict { get; }
public List<Entity> EntityList { get; }
public ParseExits() {
Dict = new Dictionary<char, string>();
EntityList = new List<Entity>();
}
public void Parse(string[] txtFile) {
...
}
public void Add(List<char> gameMap) {
...
}
I would say it's a realization as I inherit the whole interface. I realize the IParser (the "template"). Whereas a generalization would be to use some of the interface? Is this a correct distinction?