How to call a base member function from derived class member function?
class emp
{
public:
void empName()
{
cout << "emp-XYZ" << endl;
}
};
class dept : public emp
{
public:
void empName()
{
cout << "dept-XYZ" << endl;
emp::empName();
}
};
Output :dept-XYZ
emp-XYZ