...

/

Index Class with Pre and Post Increment Operators

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...

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.

Access this course and 1400+ top-rated courses and projects.