updating overriding older functions with virtual validating property sets and communicating issues with feedback
In order to allow children classes to update/override older base (parent) functions, parents need to place the keyword “Virtual” in front of those function declarations.
How to ask questions and perform algorithms to properly set properties.
Communicating issues with Feedback in order to allow the driver program to display errors or loop back to fix them.
For this lab:
Add Virtual to any of the parent functions that you believe may need to be updated for each child class: PrintStats and Attack type functions.
Implement loops and branching statements to error check player stats during SET functions.
Use constructors that will use algorithms to set min/max values for players.
Implement a Feedback string variable to allow for a central location for error-checking/handling.