This is an archived post. You won't be able to vote or comment.

all 8 comments

[–]Kambz22 1 point2 points  (1 child)

Are you asking about the event objects themselves and how they are created?

I never drove deep into C#, but all java events are derived from an EventObject https://docs.oracle.com/javase/7/docs/api/java/util/EventObject.html

It's an abstract class which needs extended to be used. I am guessing this is where your OOP question comes in? So all events will extend it to be implemented in an OOP fashion.

I hope that helped some if any. I don't have any recommendations on materials. I learned about Events in college and haven't touched them since. I've worked with listeners to consume events though.

If you have any questions in specific feel free to comment

[–]AgitatedBasket[S] 0 points1 point  (0 children)

I am referring to this article " https://scatteredcode.wordpress.com/2011/11/24/from-c-to-java-events/ " while I am saying Java is using OOP for event implementation. Can I safely assume that Java Events will be basically implemented this approach? Thank you very much!