#include <iostream>
using namespace std;
class Employee{
protected:
int EmpID;
string Name;
string Designation;
int Experience;
public:
Employee(int e,string n, int ex){
EmpID=e;
Name=n;
Experience=ex;
}
Employee(){
}
void show(){
cout<<"\nEmployee ID: "<<EmpID;
cout<<"\nName: "<<Name;
cout<<"\nDesignation: "<<Designation;
cout<<"\nExperience: "<<Experience;
}
void SetDesignation()=0;
};
class TechnicalEmployee: public Employee{
public:
void SetDesignation(){
int d;
d=Designation;
}
};
class NonTechnicalEmployee: public Employee{
public:
void SetDesignation(){
int d1;
d1=Designation;
}
};
int main()
{
Employee e;
TechnicalEmployee t;
NonTechnicalEmployee n;
return 0;
}
Comments
Leave a comment