• Post Reply Bookmark Topic Watch Topic
  • New Topic

interface reference  RSS feed

 
harsh garg
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how we create the object for the interface?
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's as simple as:

Map myMap = new HashMap()

Or are you asking how to write a class that implements an interface?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!