Multiple Inheritance

In multiple inheritance, multiple classes are inherited i.e., when class needs properties of two or more classes and follows “Is-A” relationship as well. Let us take an example to understand the concept of multiple inheritance. #include <iostream>using namespace std;class waterHabitat{public:    waterHabitat() {        cout << “water Habitat c’tor” << endl;    }    ~ waterHabitat() {        cout << “water Habitat d’tor” << endl;    }};class landHabitat{public:    landHabitat() {        cout << “land Habitat c’tor” << endl;    }    ~ landHabitat() {        cout << “land Habitat d’tor” << endl;    }};class amphibian : public waterHabitat, public landHabitat {public:   …