Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Events in interfaces

Former Member
0 Likes
721

Hi All,

I am new to OOPs.I have a dought.can we use events in interfaces?

Hi All,

I am new to OOPs.I have a dought.can we use events in interfaces?

3 REPLIES 3
Read only

Former Member
0 Likes
676

Hi,

We can define events in interfaces.But events canot be trigged in interfaces.

Read only

matt
Active Contributor
0 Likes
676

Why would you think you could?

Read only

Former Member
0 Likes
676

Hi,

Interface is only for definition purpose, so you can use almost all the properties of the class which defining attributes, methods and Events but you cannot implement any of these....

to implement them you have to use classes

hope I am clear to you...

Regards,

Siddarth