rspec/rules/S1258/description.adoc
2021-01-27 13:42:22 +01:00

2 lines
306 B
Plaintext

The ``++private++`` variables of a class without a constructor will be left uninitialized after object instantiation. In particular, it is wrong to assume that they are initialized to zero. A constructor should be added to initialize the ``++private++`` primitive, pointer, and array members of an object.