// File: ex4-8.cpp - test when a constructor is called

#include <iostream>
using namespace std;

class Z
{
public:
Z() // inline default constructor
{
cout << "Z's default constructor is called now" << endl;
}

Z(const Z& zed) // inline copy constructor
{

cout << "Z's copy constructor is called now" << endl;
}

~Z() // inline destructor
{
cout << "Z's destructor is called now" << endl;
}
};

Z funk1(Z hey)
{
cout << "This is funk1\n";
return hey;
}

int main()
{
Z temp;
funk1(temp);
}