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