Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 404 Bytes

noExplicitConstructor.md

File metadata and controls

11 lines (6 loc) · 404 Bytes

Pattern: Class constructor not explicit

Issue: -

Description

Class has a constructor that is not explicit. Such constructors should in general be explicit for type safety reasons. Using the explicit keyword in the constructor means some mistakes when using the class can be avoided.

Further Reading