Nantes Université

Skip to content

Constructors of abstract classes should not be declared public

According to sonarlint

Abstract classes should not have public constructors. Constructors of abstract classes can only be called in constructors of their subclasses. So there is no point in making them public