Q:

Why does diamond problem arise due to multiple inheritance?

0

Why does diamond problem arise due to multiple inheritance?


  1. Methods with same name creates ambiguity and conflict
  2. Methods inherited from the superclass may conflict
  3. Derived class gets overloaded with more than two class methods
  4. Derived class can’t distinguish the owner class of any derived method

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(a).Methods with same name creates ambiguity and conflict

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING INHERITANCE AND ITS TYPES MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
How many base classes can a derived class have whi... >>
<< If class A inherits class B and class C as “clas...