Skip to content

Instantly share code, notes, and snippets.

@nhoxbypass
Created December 11, 2017 14:07
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 nhoxbypass/7a970d0417760a3862872a3ef22c05f8 to your computer and use it in GitHub Desktop.
Save nhoxbypass/7a970d0417760a3862872a3ef22c05f8 to your computer and use it in GitHub Desktop.
class Base
{
public Base()
{
Console.WriteLine("Base 0 constructor called");
}
}
class Child : Base
{
public Child()
{
Console.WriteLine("Child constructor called");
}
}
class Program
{
static void Main(string[] args)
{
Base c = new Child();
Console.ReadLine();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment