“…In this sense, we had proposed in [5,6] the definition of similarity concept for assuring if the overriding method m (2) has the same behavior as its original version m (1) in the super-class relatively to their common specification (P (1) ,Q (1) , Inv (1) ). Indeed, the implementation in the subclass must override the implementation in the super class by providing a method m (2) that is similar to m (1) .…”