Question: int main ( ) { Employee * * p 1 ; Sales * p 2 ; Technician * p 3 ; Employee e 1 ;

int main()
{
Employee ** p1;
Sales * p2;
Technician * p3;
Employee e1;
Sales s1("Insurance");
Technician t1("lab1");
p1= &e1;
p2= &s1;
p3= &t1;
p1 setSalary();
p2 setSalary();
p3 setSalary ();
p1= p3;
p1 giveRaise ();
p2=p1;
p2 giveRaise ();
cout t1.getSalary () endl;
return 0;
}
 int main() { Employee ** p1; Sales * p2; Technician *

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!