PARAMETERIZED CONSTRUCTOR






SOURCE CODE

#include “iostream.h”
#include “conio.h”

class con
{
int c;
public:
con();
con(int x);
con(int x,int y);
con(int x,int y,int z);
};

con::con()
{
c=0;
cout << "\n Result Is " << c="x*x;" c="x*y;" c="x*y*z;" size="4">OUTPUT


Result Is 0
Result Is 9
Result Is 15
Result Is 12