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….
Deﬁne a class Employee. Also deﬁ ne classes of MaleEmp and FemaleEmp inheriting from the Employee class.
1. Deﬁne a class Employee. Also deﬁ ne classes of MaleEmp and FemaleEmp inheriting from the Employee class. Deﬁ ne classes Ofﬁ cers, Clerks, and Peons again inheriting from the Employee class. Deﬁ ne an array that contains 10 different types of employees. Deﬁ ne a function ReadDetails() in all the classes. All array elements should be accessible in the same routine, irrespective of their type.
2. Read an integer and a ﬂ oat. Try to compare them using typeid. Print their type names using a function name(). Now, cast the integer into ﬂ oat. Repeat the same thing. Try comparing the types of both the items using the == operator.