Hi,
If I have a class:
public blah
{
}
Then I have another class that inherits blah"
public ablah : blah
{
}
Can I do this then?
public class Someservice
{
public bool SomeBlah(blah b)
{
}
}
Could I call it the service with either classes blah or ablah?
ie.
Someservice s1 = new Somesercie();
s1.SomeBlah(new blah());
s1.SomeBlah(new ablah());
I saw this somewhere, and I thought this was only possible if one used an Interface?