You need to write a multicast delegate that accepts a DateTime argument and returns a Boolean value. Which code segment should you use?

You need to write a multicast delegate that accepts a DateTime argument and returns a Boolean
value. Which code segment should you use?

A. public delegate int PowerDeviceOn(bool,
    DateTime);
B. public delegate bool PowerDeviceOn(Object,
    EventArgs);
C. public delegate void PowerDeviceOn(DateTime);
D. public delegate bool PowerDeviceOn(DateTime);
 
 

Answer: A 







No comments:

Post a Comment