aspose file tools*
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
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: 433
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: 433
Sorry.
I should search this topic first.
Thank you anyway.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: What's the difference between Interface and Abstract class?