equality operator in methoddeclaration class