What will happen if class implemented WindowListner interface and provided its definition of only one
method?
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.
“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.
if class implemented WindowListner interface and provided
Reviewed by MCH
on
April 27, 2014
Rating:
No comments: