Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

In which situation i will use Abstract class and Inheritance.  RSS feed

 
Robin Rath
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I know the definition of Abstract class and Inheritance, also the differences. But I need a clear view on these two concepts.That is
In which situation we will use Abstract class and Inheritance.
 
Mark Newton
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When do *you* think we will use abstract class and inheritance? Also, are you sure you mean 'inheritance', not 'interfaces'?

Abstract classes are related to inheritance, but they aren't really something you would normally compare in terms of the differences...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!