2 // Test for access modifiers
15 Console
.WriteLine ("b.Count should be 9: {0}", b
.Count
);
16 Console
.WriteLine ("b [{0}] should return {0}: {1}", 10, b
[10]);
18 Console
.WriteLine ("a.Message : {0}", a
.Message
);
20 Console
.WriteLine ("b.Messasge : {0}", b
.Message
);
34 public virtual int Count
{
43 public virtual int this [int index
] {
49 public virtual string Message
{
59 public B (int count
) : base (count
)
63 public override int Count
{
68 public void SetCount (int value)
73 public override int this [int index
] {
79 public new string Message
{
81 return "Hello Mono (2)";