Under what conditions is multiple inheritance not recommended?
Answer / ackmed
If you derive from more than one base classes with the same
parent, then that parent should be a virtual base class.
| Is This Answer Correct ? | 4 Yes | 0 No |
If horse and bird inherit virtual public from animal, do their constructors initialize the animal constructor? If pegasus inherits from both horse and bird, how does it initialize animal’s constructor?
What is conditions when using boolean operators?
Write a program which uses functions like strcmp(), strcpy()? etc
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
What is the first name of c++?
What is the operator in c++?
Write a c++ code that will calculate the roots of a quadratic equation a2+ bx+c=0 Hint: d = sqrt (b2-4ac), and the roots are: x1 = (€“b + d)/2a and x2 = (€“b €“ d)/2a (use sqrt function from cmath.h )?
How do you clear a map in c++?
Explain the isa and hasa class relationships.
What is size of empty class object
Write about the local class and mention its use?
What kind of jobs can I get with c++?