私はそれを呼び出すと、()を使わないで私に電話をかける機能を持っています。なぜですか?同じ方法で関数とプロパティを呼び出すか?
Public Class Socio
Private _antiguedad As Integer
Public Function RetornarAntiguedad() As Integer
Return _antiguedad
End Function
End Class
Sub Main()
Dim test = New Socio()
test.RetornarAntiguedad <--- This works even though it doesnt have(), why?
Console.ReadKey()
End Sub
プロパティのように見えますか?それは関数とプロパティの間に混乱を生みませんか?