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

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

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!