Created
August 4, 2015 14:00
-
-
Save yanisurbis/639cd4f4b437e87461c9 to your computer and use it in GitHub Desktop.
This file contains 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
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