Multiple choice

In which of the following forms of inheritance are base classes declared as 'Virtual'?

  1. Single inheritance

  2. Multi-level inheritance

  3. Multiple inheritance

  4. None of these

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

In multiple inheritance, to avoid duplication of inherited members to the derived class, base classes are declared as 'virtual' base class.