#include #include class EMP { private: int eid; char name[20]; float salary; public: void input() { cout << "Enter Employee ID: "; cin >> eid; cout << "Enter Name: "; cin >> name; cout << "Enter Salary: "; cin >> salary; } void display() { cout << "\nEmployee ID: " << eid; cout << "\nName: " << name; cout << "\nSalary: " << salary; } }; void main() { clrscr(); EMP e1, e2; cout << "Enter details for Employee 1:\n"; e1.input(); cout << "\nEnter details for Employee 2:\n"; e2.input(); cout << "\n--- Employee 1 Details ---"; e1.display(); cout << "\n\n--- Employee 2 Details ---"; e2.display(); getch(); }