Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Abstract method v/s Interface  RSS feed

 
Gaurav Pavan Kumar Jain
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is best Abstract method or interface while programming in java
 
Mayur Ramgir
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In order to get a proper response, you need to clarify your question. Your question is bit vague please elaborate it in detail.
[ October 18, 2007: Message edited by: Mayur Ramgir ]
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 15861
81
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In some situations, an abstract class (with an abstract method) is more appropriate, in other situations an interface is more appropriate. One is not always better than the other.

See: JavaRanch FAQ - Interface vs abstract class
[ October 18, 2007: Message edited by: Jesper Young ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!