



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























class Phone: public Transmitter, public Receiver
{
...
};
class Mermaid:
private Woman, private Fish
int main(){
Phone obj; obj.Transmit(); obj.Receive(); return 0;
}
int main(){
Phone obj; Transmitter * tPtr = &obj; tPtr->Transmit(); tPtr->Receive(); //Error return 0;
}
Amphibious Vehicle
Land Vehicle Water Vehicle
Car Boat
class AmphibiousVehicle: public LandVehicle, public WaterVehicle{ }; int main(){ AmphibiousVehicle obj; obj.GetMaxLoad(); // Error return 0; }
Amphibious Vehicle
Land Vehicle Water Vehicle
Vehicle
Car Boat