You need to write a multicast delegate that accepts a DateTime argument. Which code segment
should you use?
A. Public Delegate Function PowerDeviceOn( _
ByVal result As Boolean, _
ByVal autoPowerOff As DateTime) _
As Integer
B. Public Delegate Function PowerDeviceOn( _
ByVal sender As Object, _
ByVal autoPowerOff As EventArgs) _
As Boolean
C. Public Delegate Sub PowerDeviceOn( _
ByVal autoPowerOff As DateTime)
D. Public Delegate Function PowerDeviceOn( _
ByVal autoPowerOff As DateTime) _
As Boolean
Answer: C
should you use?
A. Public Delegate Function PowerDeviceOn( _
ByVal result As Boolean, _
ByVal autoPowerOff As DateTime) _
As Integer
B. Public Delegate Function PowerDeviceOn( _
ByVal sender As Object, _
ByVal autoPowerOff As EventArgs) _
As Boolean
C. Public Delegate Sub PowerDeviceOn( _
ByVal autoPowerOff As DateTime)
D. Public Delegate Function PowerDeviceOn( _
ByVal autoPowerOff As DateTime) _
As Boolean
Answer: C
No comments:
Post a Comment