• Post Reply Bookmark Topic Watch Topic
  • New Topic

abstract class vs interface  RSS feed

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 !
 
Bartender
Posts: 10575
66
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Bartender
Posts: 6109
6
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you for sharing the link.
 
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, did Jeff now win a million dollars?
 
sujay kulkarni
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hehehe virtually he has won !!

Sujay
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!