java program for interface

 




Output

10

20



Comments