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 class PrintingArgs {
private EventArgs eventArgs;
public PrintingArgs(EventArgs ea) {
this.eventArgs = ea;
}
public EventArgs Args
{
get { return eventArgs;
}

}
} 

B public class PrintingArgs : EventArgs {
private int copies;
public PrintingArgs(int numberOfCopies) {
this.copies = numberOfCopies;
}
public int Copies {
get { return this.copies;
}

}
} 

C public class PrintingArgs : EventArgs {
private int copies;
  } 

D public class PrintingArgs {
private int copies;
public PrintingArgs(int numberOfCopies) {
this.copies = numberOfCopies;
}
public int Copies {
"A Composite Solution With Just One Click" - Certification Guaranteed 273 Microsoft 70-536 Exam
get { return this.copies;
}

}
} 

+ Answer
+ Report
Total Preview: 583

Copyright © 2024. Powered by Intellect Software Ltd