#include <iostream>
using namespace std;
class base
{
public:
char name[30],cls[20];
int roll_no,mark[5];
void get1()
{
cout<<"\n Enter the Student Name : ";
cin>>name;
cout<<"\n Enter the Roll Number : ";
cin>>roll_no;
cout<<"\n Enter the Class : ";
cin>>cls;
cout<<"\n\n Marks......";
for(int i=0;i<2;i++)
{
cout<<"\n Enter the Mark "<<i+1<<" : ";
cin>>mark[i];
}
}
};
class derive1:public base
{
public
}
To embed this project on your website, copy the following code and paste it into your website's HTML: