A
Arpan
The .NET Framework 2.0 documentation states that
An Object variable always holds a pointer to the data, never the data
itself.
Now w.r.t. the following ASP.NET code snippet, can someone please
explain me what does the above statement mean?
<script runat="server">
Class Clock
Public Second As Integer
Public Minute As Integer
Public Hour As Integer
Sub SetTime(ByVal intSec As Integer, ByVal intMin As Integer,
ByVal intHour As Integer)
Second = intSec
Minute = intMin
Hour = intHour
End Sub
End Class
Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs)
Dim objClock As New Clock
objClock.Second = 45
objClock.SetTime(25, 15, 8)
End Sub
</script>
Thanks,
Arpan
An Object variable always holds a pointer to the data, never the data
itself.
Now w.r.t. the following ASP.NET code snippet, can someone please
explain me what does the above statement mean?
<script runat="server">
Class Clock
Public Second As Integer
Public Minute As Integer
Public Hour As Integer
Sub SetTime(ByVal intSec As Integer, ByVal intMin As Integer,
ByVal intHour As Integer)
Second = intSec
Minute = intMin
Hour = intHour
End Sub
End Class
Sub Page_Load(ByVal obj As Object, ByVal ea As EventArgs)
Dim objClock As New Clock
objClock.Second = 45
objClock.SetTime(25, 15, 8)
End Sub
</script>
Thanks,
Arpan