aspose file tools
The moose likes Java in General and the fly likes Defining classes inside interface! Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Defining classes inside interface!" Watch "Defining classes inside interface!" New topic
Author

Defining classes inside interface!

Jithendra Katkam
Greenhorn

Joined: Oct 10, 2005
Posts: 1
Can we define classes inside interface?

If not,Why cannot we define.
if, How can we define. Examples required,
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8260

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?


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://jrebel.com/download
 
subject: Defining classes inside interface!
 
Similar Threads
What is the real use of interface in java apart from Multiple inheritance,
will it possible to definefianl abstarct class and interfaces?
Inner Classes
interface
Class Inside an Interface