At line number 35,39 and 43, they write a code
My class itself give the implementation of actionPerformed() method
My Problem with this code is how come we can write addActionListener(this) when addActionListener() takes ActionListener as the argument. Does this code mean My class implements ActionListener
by overrriding actionPerformed method(). How did my class became a ActionListener even though i have not declared my class as such.
I realized what I did just after I posted the query
Then why didn't you reply to the posting stating you solved the problem, so we don't waste time answering a question that has already been answered. That kind of behaviour will NOT get you help in the future.
Joined: Jan 13, 2008
Well before I could you had replied sir. Don't take any offense. Some times just things happen