Skip to content

Instantly share code, notes, and snippets.

@VladimirReshetnikov
Created January 20, 2014 22:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VladimirReshetnikov/8530850 to your computer and use it in GitHub Desktop.
Save VladimirReshetnikov/8530850 to your computer and use it in GitHub Desktop.
using System;
class Base
{
private string x = "x".Print();
}
class Derived : Base
{
private string y = "y".Print();
private string z;
public Derived()
{
this.z = "z".Print();
}
}
static class Program
{
static void Main()
{
new Derived(); // y x z
}
public static string Print(this string s)
{
Console.WriteLine(s);
return s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment