Inheritance between Index and Index1 Class
Understand operator overloading in the base class, Index, and derived class, Index1.
We'll cover the following...
Challenge
Write a program that has an Index
class in it that keeps a count and gets incremented when ++
is done on an Index
object. Derive from it an Index1
class that provides the overloaded decrementation, --
, operator. ...