كيف يمكن الدخول على بيانات الاستركتر الموروث من كلاس أخر
الكود
class mega
{
public:
mega()
{
cout << "The Constructor Of class mega initialized" << endl;
}
~mega(){};
struct Employee
{
string EmpName;
string EmpPhone;
string EmpEmail;
string EmpPic;
string EmpAddress;
};
};
class Humman:public mega
{
public:
Humman()
{
cout << "Constructor Initialized Succesfully NEO Direved " << endl;
}
string name;
string address;
string phone;
string email;
private:
int x;
int y;
int z;
};
int main()
{
Humman neo;
cout << "Please Enter Employee Name... " << endl;
// cin >>
return 0;
}