Question:You are developing a custom event handler to automatically print all open documents.
The event handler helps specify the number of copies to be printed. You need to develop a custom event
arguments class to pass as a parameter to the event handler. Which code segment should you use? - (VB.NET) 

A Public Class PrintingArgs
Private m_copies As Integer
Public Sub New(numberOfCopies As Integer)
Me.m_copies = numberOfCopies
End Sub
Public ReadOnly Property Copies() As Integer
Get
Return Me.m_copies
End Get
End Property
End Class 

B Public Class PrintingArgs
Inherits EventArgs
Private m_copies As Integer
Public Sub New(numberOfCopies As Integer)
Me.m_copies = numberOfCopies
End Sub
Public ReadOnly Property Copies() As Integer
Get
Return Me.m_copies
End Get
End Property
End Class 

C Public Class PrintingArgs
Private eventArgs As EventArgs
Public Sub New(ea As EventArgs)
Me.eventArgs = ea
End Sub
Public ReadOnly Property Args() As EventArgs
Get
Return eventArgs
End Get
End Property
End Class 

D Public Class PrintingArgs
Inherits EventArgs
Private copies As Integer
End Class 

+ Answer
+ Report
Total Preview: 2005

Copyright © 2024. Powered by Intellect Software Ltd