1 'Author: Ritvik Mayank <mritvik@novell.com>
2 'Copyright (C) 2005 Novell, Inc (http://www.novell.com)
3 'MyClass behaves like an object variable referring to the current instance of a class as originally implemented.
9 Public Overridable Sub MyMethod(i)
11 Throw New Exception ("Unexpected Behavior Expected 100 but got i = "&i )
14 Public Sub UseMyClass(i)
19 Class DerivedClass : Inherits BaseClass
20 Public Overrides Sub MyMethod(i)
22 Throw New Exception ("Unexpected Behavior.MyMethod should always call member of BaseClass. It should never call the DerivedClass")
28 Dim TestObj As DerivedClass = New DerivedClass()
29 TestObj.UseMyClass(100)