Can I have constructor in abstract class?

We can declare a constructor with no arguments in an abstract class . It will override the default constructor, and any subclass creation will call it first in the construction chain.8 Ara 2021

Sizin İçin Seçtik  Is it always necessary to provide a default constructor for a class Why or why not?

Leave a Reply

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