Question: c++ short answer questions: skip #9,10,13 7. The keyword virtual allows us to write code which execute allows us to write code which executes differently
c++ short answer questions: skip #9,10,13

7. The keyword virtual allows us to write code which execute allows us to write code which executes differently depending on type. This lets us achieve when designing interfaces, why do we list a virtual destructor when we would get a non-virtual one for free? What kind of problem would we face if a subclass that stores dynamically allocated memory inherits a non-virtual destructor? 9. How does a deep copy of a data structure differ from a shallow copy of a data structure? 10. What happens if an exception is thrown but never caught and handled? 11. Suppose that we pass a LinkedList
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
