Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

1. you should write down explanation for every line of the code. 2. you should e

ID: 3575840 • Letter: 1

Question

1. you should write down explanation for every line of the code.
2. you should explain about the example code. explanation for following contents should be included in this part.
- the inheritance structure of the Employee class
- mechanism of polymorphism in Employee class (explain with handle and virtual function)
- definition of dynamic binding and static binding
- the implementation mechanism and effect of polymorphism using vector

Employee E 1 Fig. 13.23: fig13 23.cpp 2 Processing Employee derived class objects individually 3 and polymorphically using dynamic binding 4 #include

Explanation / Answer

Dynamic Binding means method overriding because we are binding at runtime. Static Binding means method overloading because we are binding the code at compile time.

For employees, array has been used and it is refering to the base class.