Skip to content

Instantly share code, notes, and snippets.

@mhansen
Created November 25, 2009 04:20
Show Gist options
  • Select an option

  • Save mhansen/242469 to your computer and use it in GitHub Desktop.

Select an option

Save mhansen/242469 to your computer and use it in GitHub Desktop.
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
}
}
abstract class AbstractBar {}
class ConcreteBar : AbstractBar {}
abstract class AbstractFoo
{
public abstract AbstractBar getBar();
}
class ConcreteFoo : AbstractFoo
{
public override AbstractBar getBar()
{
return new ConcreteBar();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment