Hi Class,
Sorry for my lack behind post.
I just have a short question as per my Subject.
In MyEventSource.java, it takes Interface as variable. this make me
confused.
...
public void addMyEventListener(MyEventListenerInterface l) {
a1.add(l);
}
Also, MyEventExample passes MyEventListenerImpl instead.
...
s1.addMyEventListener( new MyEventListenerImpl() );
I know it runs successfully but I'm just not clear with it.
If there're any post already discuss on this thing, I'm sorry but I
can't find it.
Any suggestion would be appreciate,
CK
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---