Can there be abstract constructor?

Yes , an abstract class can have a constructor in Java. You can either explicitly provide a constructor to the abstract class or if you don’t, the compiler will add a default constructor of no argument in the abstract class.

Sizin İçin Seçtik  How do you make a Dart constructor?

Leave a Reply

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