Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What's the difference between Interface and Abstract class?

 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Michael Ernest
High Plains Drifter
Sheriff
Posts: 7292
Netbeans IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Qunfeng Wang
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry.
I should search this topic first.
Thank you anyway.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic