Dear Java Programmer:
Lab 1021:
1) In this lab MyOwnEventExample class instantiates a “Source” object. Then
adds itself as an action event listener. The add event listener method accepts
a new “Event Listener Implementation.”
a) Why is it passing in the implementation and not the interface as the
interface is what the class outside of the source procedure should be accessing?
2) When MyOwnEventExample class starts the trigger, the trigger takes the event
which added as a listener from an array and cast it as an Interface.
b) Why does it cast as an Interface and not call the interface?
c) Is this to enable it to call the method inside of the interface?
Respects,
JKid314159
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---