• Post Reply Bookmark Topic Watch Topic
  • New Topic

Defining classes inside interface!  RSS feed

 
Jithendra Katkam
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can we define classes inside interface?

If not,Why cannot we define.
if, How can we define. Examples required,
 
Joe Ess
Bartender
Posts: 9439
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like somebody is doing their homework.
Why don't you try to think it through. What do you know about interfaces? About classes? Try writing an interface with a class defined. Does the compiler like it?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!