This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Java in General and the fly likes Use of  Interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Use of  Interface " Watch "Use of  Interface " New topic

Use of Interface

Apan Raj

Joined: Sep 04, 2003
Posts: 20
Can Interface be used for Multiple Inheritance ?

"If everything is in your way, sure you are on the wrong lane"
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Herb Schildt
Ranch Hand

Joined: Oct 01, 2003
Posts: 253
By "multiple inheritance", I assume that you are referring to one interface inheriting two or more other interfaces at the same time? For example, like this:

If so, the answer is yes, as Ilja, indicated. If you are refering to some other situation, let us know.

For my latest books on Java, including Introducing JavaFX 8 Programming, see
I agree. Here's the link:
subject: Use of Interface
It's not a secret anymore!