Multiple choice technology web technology

Which of the following is mandatory while creating a class

  1. Pattern Inheritance

  2. Direct Inheritance

  3. Both

  4. None of the above

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

Direct Inheritance is mandatory when creating a class - every class must specify its direct parent class using direct inheritance. Pattern Inheritance is optional and provides additional fallback mechanisms for rule resolution beyond the direct inheritance chain.