public static void InheritanceTest07() { TestClass2 cls = new TestCls5(); Console.WriteLine(cls.VMethod2()); Console.WriteLine(cls.AbMethod2(122)); int val = 0; cls.VMethod3(ref val); if (val != 11) { throw new Exception(); } Console.WriteLine(val); }