Unformatted text preview: can precede the derived class method name with "new" keyword which makes the method a new one altogether. This is used in retaining old implementation of a method and you also want to introduce new implementation for same method in your assembly. The new keyword is basically used in reference types to create an object and allocate memory to it, and it can also be used in value types to invoke the default constructor. To create an instance of a class, use the New keyword. Example for New keyword Public Class ShowMe Sub ShowFrm() Dim frmNew As Form1 frmNew = New Form1 frmNew.Show() frmNew.WindowState = FormWindowState.Minimized End Sub End Class...
View Full Document
- Spring '10
- Object-Oriented Programming, derived class, Subroutine, new keyword, New keyword Public