Vidyalelo
C++ Programming · Q26

Polymorphism in C++

Programming · C++ Programming · question 26

Q26

In C++, can a derived class have more than one base class with a virtual function?

A.
Yes
Answer
B.
No
C.
Yes, but only if the virtual functions have the same name.
D.
Yes, but only if the virtual functions have different return types.

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board