#include<iostream.h>
#include<conio.h>
class student
{
private:
int sid;
float marks;
public:
student(int a ,float b)
{
sid=a;
marks=b;
}
void showdetails()
{
cout<<"Student ID:"<<sid<<endl<<"Marks:"<<marks;
}
};
void main()
{
clrscr();
student s(2,70.0);
s.showdetails();
getch();
}
Student ID:2
Marks:70