Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

In which situation we can write interface or abstract class.  RSS feed

 
Nagendra Dhulipudi
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In what situation we can write interface?
In what situation we can write abstract class?as both can have abstract methods.As per my knowledge we can go for interface when we need multiple Inheritance.Is there any other(best)situation to write interfaces?
 
Jeff Albertson
Ranch Hand
Posts: 1780
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.coderanch.com/t/380102/java/java/Abstract-Class-Vs-Interface
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!