You write the following code. public delegate void FaxDocs(object sender, FaxArgs args); You need to create an event that will invoke FaxDocs. Which code segment should you use?

You write the following code. public delegate void FaxDocs(object sender, FaxArgs args); You
need to create an event that will invoke FaxDocs. Which code segment should you use?

A. pulic static event FaxDocs Fax;
B. public static event Fax FaxDocs;
C. public class FaxArgs : EventArgs {
    private string coverPageInfo;
    public FaxArgs(string coverInfo) {
    this.coverPageInfo = coverPageInfo;
    }
    public string CoverPageInformation {
    get {return this.coverPageInfo;}
    }}
D. public class FaxArgs : EventArgs {
    private string coverPageInfo;
    public string CoverPageInformation {
    get {return this.coverPageInfo;}
    }}

Answer: A
 









No comments:

Post a Comment