If I have a generic class like this:
public class Repository<T>
{
public string Greeting(T t)
{
return "Hi, I'm " + t.ToString();
}
}
which is extended like this:
public class FooRepository : Repository<Foo>
If FooRepository has a method called Greeting(Foo foo)
, does that method have the same signature as the base class method (i.e. hide or override it), or is it considered separate?
I'm a little confused to be honest.