Last active
August 29, 2015 14:20
-
-
Save fpopic/b5068e902c215446cbc4 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
| using System; | |
| namespace k | |
| { | |
| public class B | |
| { | |
| public void Test() | |
| { | |
| Console.WriteLine("B"); | |
| } | |
| } | |
| public class I : B | |
| { | |
| public void Test() | |
| { | |
| Console.WriteLine("I"); | |
| } | |
| } | |
| class Program | |
| { | |
| static void Main() | |
| { | |
| I i = new I(); | |
| i.Test(); | |
| ((B) i).Test(); | |
| B b = i; | |
| b.Test(); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment