Why do we need constructor in abstract class C#?

Answer: Yes, an abstract class can have a constructor. In general, a class constructor is used to initialize fields . Along the same lines, an abstract class constructor is used to initialize fields of the abstract class.

Sizin İçin Seçtik  What is an abstract class in Java why we are using?

Leave a Reply

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