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?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

0 Answers  


Is main a class in c++?

0 Answers  


whats the size of class EXP on 32 bit processor? class EXP { char c1; char c2; int i1; int i2; char *ptr; static int mem; };

5 Answers   Huawei,


What is the two main roles of operating system?

0 Answers  


What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };

2 Answers  






How do you allocate and deallocate memory in C++?

1 Answers  


What is the difference between delegation and implemented-in-terms-of?

0 Answers  


What is the difference between strcpy() and strncpy()?

0 Answers  


Distinguish between new and malloc and delete and free().

0 Answers  


When to use Multiple Inheritance?

6 Answers  


What is the function to call to turn an ascii string into a long?

0 Answers  


What is the difference between set and map in c++?

0 Answers  


Categories