Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to work with interface in java?

 
Rohit Kainth
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator








 
Greg Brannon
Bartender
Posts: 563
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you forget to add the code you're asking about?
 
fred rosenberger
lowercase baba
Bartender
Posts: 12198
35
Chrome Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I added code tags to your post, hoping it would be slightly more readable, but you don't quite have it formatted consistently.

Is there actual question that you have? there's not much help we can give otherwise...
 
Campbell Ritchie
Sheriff
Pie
Posts: 50241
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

Inner classes are too difficult for us who are just "beginning", so I shall move this thread. I think there might be an interesting question there, but you really ought to tell us what that question is
 
Rohit Kainth
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to know how this program is working...and also the concept...
 
Campbell Ritchie
Sheriff
Pie
Posts: 50241
79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have several classes which implement your interface, with show() methods. You can call all those show() methods,and see their output.
You obviously have a further question, which you haven't yet asked.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic