I found the following example, to which I have a follow up question.
and if there is shared logic between all of concrete classes you can put it in the abstract class and override abstract protected methods instead.
CodePudding user response:
But what is wrong with this
public class BarRepository<T> : Repository<Bar> where T : class
{
public override void Update(Bar item)
{
}
public void Update(T item)
{
}
}

