21.7.1 Name Ambiguity (cont.)

  1. Redefine the ambiguous name in the new class:
    class TeachingAssistant : public Student, public Employee
    {
    public:
       string get_id() const;
       string student_id() const;
    };

prev |top |next