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?

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);

Explanation:
A & C does not return a type Bool
B does not accept a parameter of type DateTime



Leave a Reply 1

Your email address will not be published. Required fields are marked *


seenagape

seenagape

Correct answer is D