class Employee
{
public:
  Employee(string name);
  virtual void print() const;
private:
  string _name;
};

class Manager : public Employee
{
public:
  Manager(string name, string dept);
  virtual void print() const;
private:
  string _dept;
};

int main()
{  Employee* staff[10];
 staff[0] = new Employee("Harry Hacker");
 staff[1] = new Manager("Joe Smith", "Sales");
 // ... etc. until staff[9]
 for (int i = 0; i < 10; i++) 
   staff[i]->print();
 for (int i = 0; i < 10; i++) 
   delete staff[i];
 return 0;
}

