Computer Science, asked by srai77768, 7 months ago

Ambiguity in hybrid inheritance can be resolved by ____. fill in the blanks.

Answers

Answered by mad210202
0

Answer:

The answer of the following question is Use scope resolution operator  and Use virtual base class.

Explanation:

Ambiguity in hybrid inheritance can be resolved by the following ways:

The 2 ways to avoid this ambiguity:

  • Use scope resolution operator
  • Use virtual base class.

  1. Use scope resolution operator  -  By using scope resolution operator user can manually specify path of a data member that will be accessed.

    2. Use virtual base class - In this method virtual classes used to remove   the ambiguity and it used widely in the hybrid inheritance.

Similar questions