1.       Define a class Employee. Also defi ne classes of MaleEmp and FemaleEmp inheriting from the Employee class. Defi ne classes Offi cers, Clerks, and Peons again inheriting from the Employee class. Defi ne an array that contains 10 different types of employees. Defi 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 fl oat. Try to compare them using typeid. Print their type names using a function name(). Now, cast the integer into fl oat. Repeat the same thing. Try comparing the types of both the items using the == operator.

Found something interesting ?

• On-time delivery guarantee
• PhD-level professional writers
• Free Plagiarism Report

• 100% money-back guarantee
• Absolute Privacy & Confidentiality
• High Quality custom-written papers

Related Model Questions

Feel free to peruse our college and university model questions. If any our our assignment tasks interests you, click to place your order. Every paper is written by our professional essay writers from scratch to avoid plagiarism. We guarantee highest quality of work besides delivering your paper on time.

Grab your Discount!

25% Coupon Code: SAVE25
get 25% !!