You write the following code.
Public Delegate Sub FaxDocs(ByVal sender As Object, _
ByVal args as FaxArgs)
You need to create an event that will invoke FaxDocs. Which code segment should you use?
A. Public Shared Event Fax As FaxDocs
B. Public Shared Event FaxDocs As FaxArgs
C. Public Class FaxArgs
Inherits EventArgs
Private coverPageInfo As String
Public Sub New(ByVal coverInfo As String)
Me.coverPageInfo = coverInfo
End Sub
Public ReadOnly Property CoverPageInformation As String
Get
Return Me.coverPageInfo
End Get
End PropertyEnd Class
D. Public Class FaxArgs
Inherits EventArgs
Private coverPageInfo As String
Public ReadOnly Property CoverPageInformation As String
Get
Return Me.coverPageInfo
End Get
End PropertyEnd Class
Answer: A
Public Delegate Sub FaxDocs(ByVal sender As Object, _
ByVal args as FaxArgs)
You need to create an event that will invoke FaxDocs. Which code segment should you use?
A. Public Shared Event Fax As FaxDocs
B. Public Shared Event FaxDocs As FaxArgs
C. Public Class FaxArgs
Inherits EventArgs
Private coverPageInfo As String
Public Sub New(ByVal coverInfo As String)
Me.coverPageInfo = coverInfo
End Sub
Public ReadOnly Property CoverPageInformation As String
Get
Return Me.coverPageInfo
End Get
End PropertyEnd Class
D. Public Class FaxArgs
Inherits EventArgs
Private coverPageInfo As String
Public ReadOnly Property CoverPageInformation As String
Get
Return Me.coverPageInfo
End Get
End PropertyEnd Class
Answer: A
No comments:
Post a Comment