rspec/rules/S3434/description.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

5 lines
447 B
Plaintext

Shadowing parent class members by creating properties and methods with the same signatures as non-``++virtual++`` parent class members can result in seemingly strange behavior if an instance of the child class is cast to the parent class. In such cases, the parent class' code will be executed instead of the code in the child class, confusing callers and potentially causing hard-to-find bugs.
Instead the child class member should be renamed.