Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Abstract method v/s Interface

 
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
Saloon Keeper
Posts: 15214
36
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