Question

Extend the smartintarrayclass in smartintarrayclass.h and smartintarrayclass.cpp to include member functions that store and retrieve the (data of) the instance to and from a named file. The file name is passed to the member function as a simple C++ string. This can be done either by directly modifying the smartintarrayclass, or by defining a new derived storeintarrayclass that inherits from smartintarrayclass.

Change the MarksClass.cpp program to:

Answer