Generalization of the notion of relative degree and its properties