class Class1
{
static void Main(string[] args)
{
Foo b1 = new Bar();
b1.Response();
Console.ReadLine();
}
}
abstract class Foo
{
public void Response()
{
Console.WriteLine("In Foo");
}
}
class Bar : Foo
{
public void Response()
{
Console.WriteLine("In Bar");
}
}