#include using namespace std; class Emp { int id; float sal; public: void get(int a, float b) { id = a; sal = b; } void show(); }; void Emp::show() { cout << "ID: " << id << endl; cout << "Salary: " << sal << endl; } int main() { Emp e1, e2; e1.get(1, 5000); e2.get(2, 7000); e1.show(); e2.show(); return 0; }