Suppose I have a template/generic class that just store key/value pairs:
public class GenericDatabase<Key, T>
{
public Dictionary<Key, T> Data { get; set; }
public GenericDatabase()
{
Data = new Dictionary<Key, T>();
}
...
}
Is it acceptable to derive a class from it without introducing any new methods or member variables, just for clarity? For instance, say I want to have a character database:
public class CharacterDatabase : GenericDatabase<string, CharacterStat>
{
// no new methods or member variables
}