This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Abstract modifier  RSS feed

 
Pranshul Bajaj
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can a concrete class extend an abstract class?
 
Julius Adek
Greenhorn
Posts: 26
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, an abstract class is meant to be extended by concrete class. Since abstract class can not be instantiated, so one of the work of concrete class is to implement abstract methods in the abstract class. Abstract method is a method that is having head without a body, so concrete class gives bodies to all abstract class methods. You can read more here:  https://docs.oracle.com/javase/tutorial/java/IandI/abstract.html
 
Campbell Ritchie
Marshal
Posts: 56187
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
. . . and welcome to the Ranch
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!