Write the output of the following
#include < iostream >
#include < stdio.h >
using namespace std;
class sub
{
int day, subno;
public :
sub(int,int); // prototype
void printsub()
{ cout << " subject number : " << subno;
cout << " Days : " << day; }
};
sub::sub(int d=150,int sn=12)
{ cout << endl << "Constructing the object" << endl;
day=d;
sub no=sn;
}
class stud
{
int rno;
float marks;
public:
stud( )
{ cout << "Constructing the object of students" << endl;
rno=0;
marks=0.0;
}
void getval()
{
cout << "Enter the roll number and the marks secured ";
cin >> rno >> marks;
}
void printdet()
{ cout << "Roll no : " << rno << "Marks:" << marks << endl; }
};
class addmission {
sub obj;
stud objone;
float fees;
public :
add mission ( )
{ cout<< "Constructing the object of admission " << endl;
fees=0.0;
}
void printdet ( )
{ objone.printdet ( );
obj.printsub( );
cout << "fees :" << endl; }
};
int main ( )
{system("cls");
addmission adm;
cout << endl << "Back in main( )";
return 0; }