• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating an instance to an interface

 
SN Ayyappan
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,,, Can i able to create an instance to an interface. Please help me in this regard........
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can only create instances of classes, not of interfaces. You can create an instance of an anonymous class that implements an interface, though. Something like this:
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic