Module 01 Content 1. Top of Form Healthcare professionals would be thrilled if individuals made decisions about what to eat based on a solid knowledge of what constitutes a “healthy….
Provide cross casting for Problem 7. (Hint: deﬁ ne a pointer pointing to SystemVariable.
1. Provide cross casting for Problem 7. (Hint: deﬁ ne a pointer pointing to SystemVariable. Now, make it point to an object of CompilerVariable. Dynamic cast that SystemVariable pointer to UserVariable pointer.)
2. Rewrite the DangerousFunction given in Program 11.7 in the chapter and use the same function to manipulate the string variable. (Hint: Use the same const_cast with argument char *).
3. Recall Problem 3 of Chapter 10. Now, provide typeid to check for the type of student that a student pointer is pointing to and then cast it. Provide dynamic_cast to do the same.