Why abstract class is used in Java?

Java Abstract class can implement interfaces without even providing the implementation of interface methods. Java Abstract class is used to provide common method implementation to all the subclasses or to provide default implementation . We can run abstract class in java like any other class if it has main() method.

Sizin İçin Seçtik  140 bine hangi araba alınır?

Leave a Reply

Your email address will not be published. Required fields are marked *