Sure! Below is a simple C++ program that demonstrates multiple inheritance to calculate the average marks of six subjects. In this example, we'll have two base classes: `SubjectMarks` to store the marks for each subject, and `AverageMarks` to compute the average using the marks from `SubjectMarks`. The derived class `Student` will inherit from both base classes.
Here's the implementation:
```cpp
#include <iostream>
using namespace std;
// Base