This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes abstract class vs interface Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "abstract class vs interface " Watch "abstract class vs interface " New topic
Author

abstract class vs interface

sujay kulkarni
Greenhorn

Joined: Oct 04, 2012
Posts: 15
Million Dollar question , when one should prefer for abstract class over interface or vice versa??

I am not getting satisfying answer for this question
Please help !
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 7716
    
  20

manu united wrote:Million Dollar question , when one should prefer for abstract class over interface or vice versa??
I am not getting satisfying answer for this question
Please help !

Please KeepItDown (←click).

Million Dollar answer: when it makes sense.

And sometimes you will want both (or neither).

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
Jeff Verdegan
Bartender

Joined: Jan 03, 2004
Posts: 6109
    
    6

First, please don't use so much bold. It's like shouting, and it makes your post unpleasant to read.

As for your question, please SearchFirst(←click) and come back with more specific questions after you've done some research if some particular point is not clear. The question has been discussed to death here and on other sites, and has plenty of coverage in tutorials, blogs, and whatnot. There's a good starting point right on this site: https://www.coderanch.com/how-to/java/InterfaceVsAbstractClass
sujay kulkarni
Greenhorn

Joined: Oct 04, 2012
Posts: 15
thank you for sharing the link.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14117
    
  16

So, did Jeff now win a million dollars?


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
sujay kulkarni
Greenhorn

Joined: Oct 04, 2012
Posts: 15
hehehe virtually he has won !!

Sujay
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: abstract class vs interface