What is Virtual Inheritance?

Answer Posted / rakesh kumar

whenever there are two derived class derived from same base
class,when these two derived classes derive third derived
class which contain the properties of the 1st base class
twice.virtual class is use to avoid this.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is std :: flush?

576


Difference between overloading vs. Overriding

588


What is the use of cmath in c++?

587


What is copy constructor? Can we make copy constructor private in c++?

596


What is else if syntax?

675






Write a program using display() function which takes two arguments.

609


What is the difference between interpreters and compilers?

626


Write about the stack unwinding?

626


What is the difference between a baller and a reference in C++?

576


Program to check whether a word is a sub-string or not of a string typed

1594


What is the output of the following program? Why?

622


can any one help to find a specific string between html tags which is changed to a sting.. weather.html looks (for location) is somewhere #include #include #include using namespace std; string find_field(string myPage,string); int main (void) { string page, line, location, temperature; ifstream inputFile("weather.xml"); while(getline(inputFile, line)) { page.append(line); line.erase(); } // Now page is a string that contains the whole xml page // Here you need to write something that finds and // extracts location and temperature from the XML // data in the string page and stores them in // the strings location and temperature respectively location=find_field(page,"location"); temperature=find_field(page,"temp_c"); cout << "Location: "<

1641


When should we use multiple inheritance?

615


If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?

588


What is set in c++?

656