Skip to content

Instantly share code, notes, and snippets.

@alanmcgovern
Created May 4, 2012 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alanmcgovern/6f2c4173cc02e49cb886 to your computer and use it in GitHub Desktop.
Save alanmcgovern/6f2c4173cc02e49cb886 to your computer and use it in GitHub Desktop.
using System;
namespace sdgdeyefhy
{
class MainClass
{
public static void Main (string[] args)
{
Console.WriteLine ("Hello World!");
new Foo ().Method ();
}
public virtual void Method ()
{
}
protected int Transform (int value)
{
return value + 5;
}
}
class Foo : MainClass
{
public override void Method ()
{
Console.WriteLine (Transform (5));
base.Method ();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment