Question: } } ; void print ( Employee & w ) { cout ( < ) w . pay (

\}\}; void print(Employee \& w)\{ cout \(<\) w.pay()<""; \} int main (\{ Employee * p[3]=\{new PartTimer(25,60), new Employee(1800), new PartTimer(300)\}; for (int \(\mathrm{i}=0 ; \mathrm{i}<3 ; \mathrm{i}++)\{\) print(\(\left.{}^{*} p[i]\right)\); \}\}25180030017501800120002518001200017501800300

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 Databases Questions!