Ad Code

if class implemented WindowListner interface and provided


What will happen if class implemented WindowListner interface and provided its definition of only one
method?

To handle window events, we need to implement “WindowListner” interface.
“WindowListner” interface contains 7 methods We require only one i.e. windowClosing
But, We have to provide definitions of all methods to make our class a concrete class, if don’t do this we can not create its object.
Reactions

Post a Comment

0 Comments