Skip to content

Instantly share code, notes, and snippets.

@yanisurbis
Created August 4, 2015 14:00
Show Gist options
  • Save yanisurbis/639cd4f4b437e87461c9 to your computer and use it in GitHub Desktop.
Save yanisurbis/639cd4f4b437e87461c9 to your computer and use it in GitHub Desktop.
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
//B b = new B();
//b.print();
//b.hi();
Console.ReadLine();
}
}
public abstract class A : B
{
protected int a1;
public int A1
{
get { return a1; }
set { a1 = value; }
}
public A()
{
a1 = 121;
}
public void hi() { Console.WriteLine("hi"); }
//virtual
}
public class B
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment