This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes What's the difference between Interface and Abstract class? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "What Watch "What New topic
Author

What's the difference between Interface and Abstract class?

Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 434
First I think the interface is for mutil-inherentace. Because java doesn't allow mutil-inherentace.
But why C++ have interface? I need some clearition on these two concepts.
Thank you in advance?


To be or not to be. It's a question.
Michael Ernest
High Plains Drifter
Sheriff

Joined: Oct 25, 2000
Posts: 7292

I can't tell between your topic subject and your post what you're really after.

But it may help to think of an interface as a 'pure' abstract class.


Make visible what, without you, might perhaps never have been seen.
- Robert Bresson
Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 434
Sorry.
I should search this topic first.
Thank you anyway.
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: What's the difference between Interface and Abstract class?
 
It's not a secret anymore!