What is c++ virtual inheritance?


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

Post New Answer

More C++ General Interview Questions

Can we sort map in c++?

0 Answers  


What is Name Decoration?

2 Answers   Lucent,


What is the best c++ compiler?

0 Answers  


What is the operator in c++?

0 Answers  


What are the 3 levels of programming languages?

0 Answers  






What does iomanip mean in c++?

0 Answers  


class Alpha { public: char data[10000]; Alpha(); ~Alpha(); }; class Beta { public: Beta() { n = 0; } void FillData(Alpha a); private: int n; }; How do you make the above sample code more efficient? a) If possible, make the constructor for Beta private to reduce the overhead of public constructors. b) Change the return type in FillData to int to negate the implicit return conversion from "int" to "void". c) Make the destructor for Alpha virtual. d) Make the constructor for Alpha virtual. e) Pass a const reference to Alpha in FillData

2 Answers   Quark,


daily Routine of father

0 Answers  


What is the difference between an external iterator and an internal iterator? Describe an advantage of the external iterator.

0 Answers  


What is const in c++?

0 Answers  


What is the need of a destructor? Explain with the help of an example.

0 Answers  


Can member data be public?

0 Answers  


Categories