Modifying virtual function declarations for analogy