How do you call an abstract class constructor?

You can’t call an abstract class constructor with a class instance creation expression, i.e. As constructors of abstract classes can only be called within subclass constructors (and by chaining one to another within the same class), I typically make them protected … making them public would serve no purpose.19 Haz 2014

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 *