Q24
In C++, what happens if a derived class inherits multiple base classes and each base class contains a member with the same name?
A.
The member of the derived class must explicitly specify which base class member to access
B.
The member of the derived class will access the member from the base class with the same name
AnswerC.
A compilation error occurs
D.
The member of the derived class accesses all members with the same name from all base classes
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board