Can abstract class have constructor?

Like any other classes in Java, abstract classes can have constructors even when they are only called from their concrete subclasses .

Sizin İçin Seçtik  What is the use of constructor and destructor in PHP?

Leave a Reply

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