// File: ex4-7.cpp
#include <iostream>
using namespace std;
class Z
{
public:
Z() // inline constructor
{
cout << "Z's 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);
}