Index Class with Pre and Post Increment Operators
Understand the pre-increment and post-increment overloaded operators, in an Index class.
We'll cover the following...
We'll cover the following...
Problem
Write a program to implement an Index class that has a private int count in it. It should also have a pre-increment and post-increment overloaded operator in it which increments count appropriately.
Coding solution
Here is a solution to the problem above.