Friday, August 7, 2020

Can abstract class have constructor in C#?

 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.