1class Solution
2{
3 public :
4 int operator()(int n) // overloading the operator ()
5 {
6 return n*n;
7 }
8};
9int main()
10{
11 Solution solve; // making an function object
12 cout<<solve(3)<<"\n"; // passing three as a parameter in the function object
13
14}
15// output -> 9