Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

...