当前位置:首页 > ASP教程 > ASP基础

ASP类的写法

<%
Class myClassName
Private int_ID '分类id
'类初始化
Private Sub Class_Initialize()
m_strError = ""
End Sub

'类释放
Private Sub Class_Terminate()
m_strError = ""
End Sub

'-----读写各个属性---------------------------
Public Property Get ID
ID = int_ID
End Property

Public Property Let ID(intId)
int_ID = intId
End Property

public Function method()
End Function
End Class
%>
【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!