Can event’s have access modifiers

Q

Can event’s have access modifiers ?

✍: Guest

A

Event’s are always public as they are meant to serve every one register ing to it. But you can access modifiers in events.You can have events with protected keyword which will be accessible only to inherited classes.You can have private events only for object in that class.

2007-10-23, 8307👍, 0💬