Are constructor of abstract class private?

Answer: Yes. Constructors in Java can be private . All classes including abstract classes can have private constructors. Using private constructors we can prevent the class from being instantiated or we can limit the number of objects of that class.

Sizin İçin Seçtik  Avro ne demek?

Leave a Reply

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