Programming Challenge 5


Description

Create a simple class hierarchy for a polymorphic type DataTransform. Provide two subclasses: Reverse and Substitute. Let the data that is operated on be an array of integers. Write a test in main that demonstrates a simple undo/redo sequence of user defined operations (use a stack).

Assume Reverse is not meant to be inherited from again, but Substitute might be. Write the hierarchy using modern protective keywords, e.g., override and final.

Details


General Instructions, Turning in assignments, and Grading

General Instructions

Turn in Instructions

Each assignment will be turned in through GitHub classroom. Please find the link to create a repository at the top of this page, or through this link. Assignments are due BEFORE, let me repeat, before class starts. This does not mean five minutes after class starts.

Points