...
In this noncompliant code example, the clone()
method in the class Base
does not fails to call super.clone()
. Hence, the object devClone
ends up being of type Base
instead of Derived
, with resulting incorrect application of the doLogic()
method.
...