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
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.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.