#include <iostream>

using namespace std;

class student{
private:
string name;
float marks;
int id;
public:

enterdata()
{
cout<<“Enter name\n”;
cin>>name;
cout<<“Enter marks\n”;
cin>>marks;
cout<<“Enter id\n”;
cin>>id;
}
showdata()
{
cout<<“The name of student is\n”<<name;
cout<<“Enter marks of student are\n”<<marks;
cout<<“Enter the id of student is\n”<<id;
}
student()
{
cout<<“default Constructor called\n”;

name= “Shaheryar”;
marks= 100;
id=102;

}

};

int main(int argc,char** argv)
{
student s1,s2,s3;
cout<<“Enter the data for student 1\n”;
s1.enterdata();
cout<<“Enter the data for student 2\n”;
s2.enterdata();

cout<<“The data of student 1 is\n”;
s1.showdata();
cout<<“The data of student 2 is\n”;
s2.showdata();
s3.showdata();
return 0;
}