没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
Class myClass1
Public a1,a2
Public Property Get a3(ByVal a5)
a3=a5&" good"
End Property
End Class
Dim x
Set x=New myClass1
response.Write("x.a1+x.a2="&x.a3("中国")&"〈br〉")
x.a1=1
x.a2=2
Response.Write("x.a1="&x.a1&"〈br〉")
Response.Write("x.a2="&x.a2&"〈br〉")
运行结果为:
x.a1+x.a2=中国 good
x.a1=1
x.a2=2
对属性只读
Class myClass1
Public a1,a2
Public Property Let a3(ByVal a5)
a3=a5 & " good"
a1=a5
End Property
End Class
Public a1,a2
Public Property Get a3(ByVal a5)
a3=a5&" good"
End Property
End Class
Dim x
Set x=New myClass1
response.Write("x.a1+x.a2="&x.a3("中国")&"〈br〉")
x.a1=1
x.a2=2
Response.Write("x.a1="&x.a1&"〈br〉")
Response.Write("x.a2="&x.a2&"〈br〉")
运行结果为:
x.a1+x.a2=中国 good
x.a1=1
x.a2=2
对属性只读
Class myClass1
Public a1,a2
Public Property Let a3(ByVal a5)
a3=a5 & " good"
a1=a5
End Property
End Class
资源评论
awlq2009
- 粉丝: 3
- 资源: 50
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功