以下是引用caiyakang在2005-8-7 11:08:13的发言:
看C++类讲得很好.
C++ 的 讲得 狠不错, 我那本事学校发的 全英文版本,现代汉语词典 一样厚
俺的电子档案 都是一系列 上百MB的,可惜不能 发

VB, Delphi, ASP, PHP, JSP, .NET MS SQL, My SQL, Oracle Diablo, StarCraft, WarCraft, World of Warcraft
http://www.design60s.com'>www.design60s.com</a>.<br/>"
End Sub
'//---------------------------定义类的输出属性-------------------------------//
'//----定类的属性,该属性是让用户初始化strExample变量
Public Property Let setExample(ByVal strVar)
strExample = strVar
End Property
'//---------------------------定义类的输出属性-------------------------------//
'//----定义类的属性,该属性是返回一个版本号
Public Property Get Version
Version = strVersion
End Property
'//----定义类的属性,该属性是返回该类的作者号
Public Property Get Author
Author = strAuthor
End Property
'//----定义类的属性,该属性是返回用户自定义信息
Public Property Get Example
Example = strExample
End Property
End Class
%>
<%
'//-------这里是使用该类的例子
Dim oneNewClass
Set oneNewClass = new myClass
Response.Write "作者:" & oneNewClass.Author & "<br/>"
Response.Write "版本:" & oneNewClass.Version & "<br/>"
oneNewClass.setExample = "这是一个简单类的例子"
Response.Write "用户自定义:" & oneNewClass.Example & "<br/>"
oneNewClass.Information
Set oneNewClass = Nothing
%>
