Cpp : Inheritance 23

Example:3

Based on the user choice take input for details of either student, employee or product and display the details.

code

Output: