编程
复制代码 代码如下:
Class Con_Math
Public A
Public B
Private intC
Public Function Sum()
intC = cint(A) + cint(B)
Suwww.cppcns.comm = intC
End Function
End Class
set math = new Con_Math
math.A = 19
math.B = 80
Response.write math.Sum
set math = nothing
编程客栈http://www.cppcns.com
zWlIFEhq
网站
复制代码 代码如下:
Class Con_Math
Public A
Public B
Private intC
Public Function Sum()
intC = cint(A) + cint(B)
Sum = intC
End Function
Public Function Sum2(ByVal vA,ByVal vB)
Sum2 = cint(vA) + cint(vB)
End Function
End Class
set math = new Con_Math
Response.write math.Sum2(19,80)
set math = nothing
本文标题: ASP 使用三层架构 asp中使用类
本文地址: http://www.cppcns.com/wangluo/asp/51415.html
© 著作权归作者所有
举报
发表评论
0/200