Exemplo n.º 1
0
int main()
{
	int x = 3, xSquared, xSquaredAgain;
	FunctionObject square;

	xSquared = square(x); // Call the function-call operator
	xSquaredAgain = square.doSquare(x); // Call the normal method

	return 0;
}