Question: Polymorphism Question 8 (a) What does the virtual keyword do in C++? 2 marks] [3 marks] 2 marks] (b) . What is the key benefit

Polymorphism Question 8 (a) What does the virtual keyword do in C++? 2 marks] [3 marks] 2 marks] (b) . What is the key benefit of polymorphism? ii. What are the main disadvantages of polymorphism? c) How could you use pointers to objects to avoid the object slicing prob- lem? Briefly explain object slicing as part of your answer. 13 marks] [Total for Question 8: 10 marks]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
