Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Module Module1
- Sub Main()
- Console.WriteLine("Create instance of DerivedClass.....")
- Dim derivedclass = New DerivedClass()
- ' the next line calls the print function in our base class
- derivedclass.Print()
- End Sub
- End Module
- ' Our Base class
- Public Class BaseClass
- Public Sub Print()
- Console.WriteLine("call Print() function from BaseClass")
- End Sub
- End Class
- ' Our Derived class that inherits from our Base Class
- Public Class DerivedClass
- Inherits BaseClass
- ' note that there is no code here
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement