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? 

A public ref class PrintingArgs {
public :
EventArgs Args;
PrintingArgs(EventArgs ea) {
this->Args = ea;
}
}; 

B public ref class PrintingArgs {
public :
int Copies;
PrintingArgs (int numberOfCopies) {
this->Copies = numberOfCopies;
}
}; 

C public ref class PrintingArgs : public EventArgs {
public :
int Copies;
}; 

D public ref class PrintingArgs : public EventArgs {
public :
int Copies;
PrintingArgs(int numberOfCopies) {
this->Copies = numberOfCopies;
}
}; 

+ Answer
+ Report
Total Preview: 952

Copyright © 2024. Powered by Intellect Software Ltd