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  Why is it important to provide a default constructor in Java What happens if your class doesn't have a no argument constructor?

Leave a Reply

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