VB.net 2010 视频教程 VB.net 2010 视频教程 python基础视频教程
SQL Server 2008 视频教程 c#入门经典教程 Visual Basic从门到精通视频教程
当前位置:
首页 > VB.net教程 >
  • vb.net 属性设置

Public Class Car
Public color As String
Private intSpeed As Integer
Public Property Speed() As Integer
Get
Return intSpeed
End Get
Set(value As Integer)
intSpeed = value
End Set
End Property
End Class
 
Public Class Car
Public color As String
Private intSpeed As Integer
Public Property Speed As Integer
Get
Return intSpeed
End Get
Set(value As Integer)
intSpeed = value
End Set
End Property
End Class
这两段属性Speed() 和Speed 有什么区别没
————————————————
版权声明:本文为CSDN博主「qq_39987776」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/qq_39987776/article/details/83033288

相关教程