I have doubt whether we can do the following or not.
Suppose I have created two instance of class A i.e. obj1 and obj2 and class A has member function show().
Can I use the following?
(obj1+obj2).show()
If yes, how? If no, why it is not possible?
Yes it is possible, just implement operator+ for A and have it return a class of type A: