Check out example codes for "operator ++ overloading c++". It will help you in understanding the concepts better.

Code Example 1

class Point
{
public:
	Point& operator++() { ... }		// prefix
	Point operator++(int) { ... }	// postfix
  	friend Point& operator++(Point &p);			// friend prefix
  	friend Point operator++(Point &p, int);		// friend postfix
  	// in Microsoft Docs written "friend Point& operator++(Point &p, int);"
};

Learn ReactJs, React Native from akashmittal.com