using System; namespace ProblemAB { class User { static void Main() { AB ab1 = new AB(); AB ab2 = new AB( 20 ); ab1.B = 10; Console.WriteLine( "The value of a is {0}.", ab1.A ); Console.WriteLine( "The value of ab1's b is {0}", ab1.B ); Console.WriteLine( "The value of ab2's b is {0}", ab2.B ); } } class AB { private static int a = 0; private int b; // Constructors public AB() { b = a; } public AB(int valueIn) { b = valueIn; } // Properties -- aka accessors and modifiers public int B // B is an accessor and modifier { get { return b; } set { b = value; } } public int A // A is an accessor only { get { return a; } } } }