• 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: 56518
172
  • 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!