Proficient ASP.NET (VB.NET) (2) VB.NET class

zhaozj2021-02-16  53

Proficient ASP.NET (VB.NET) (2) VB.NET class

(1) Definition of Class Class Class_name End Class (2) Members of Class 1. Domain: Declaration Area of ​​Variables 2. Properties: Provide Read (GET), write (SET) Control Interface Data Block PRIVATE XAS INTEGER Pubilc Property x () get return _x end entry _x = value end vendy 3. Subprogram and function (Method): Subprint: Public Sub x_read () End Sub Function: Function X_Write () End Function (3) Inheritance: Public Class class1_name inherits class2_name end (4) Overload: Overloads Sub X_Read (X as char) Overloads Sub X_READ (X AS Integer) OverLoads Function X_Write (X as char) Overloads Function X_Write (X AS Integer) (5) Constructor: If the constructor is not defined ( NEW method), the system will be created automatically. (6) Notinheritable Class: If the class declaresses the Notinheritable class, this class cannot be inherited.

转载请注明原文地址:https://www.9cbs.com/read-23510.html

New Post(0)