Created
December 11, 2017 14:07
-
-
Save nhoxbypass/7a970d0417760a3862872a3ef22c05f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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