This preview shows page 1. Sign up to view the full content.
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
This note was uploaded on 11/25/2010 for the course CS cs 201 taught by Professor Unknown during the Spring '10 term at Apex College.
- Spring '10