Write a program of constructor
#include<iostream.h>
#include<conio.h>
class student
{
public:
student(){}
student(int x,int y)
{
cout<<x*y;
}
};
void main()
{
int a,b;
clrscr();
cout<<"Enter Value of A: ";
cin>>a;
cout<<"Enter value of B:";
cin>>b;
student o;
student p(a,b);
getch();