Skip to main content

Practice

Polymorphism and the virtual destructor rule

intermediate~35 min of coding3 challenges

Abstract shapes with real dispatch, and a challenge that fails without a virtual destructor.

Checking your progress…0%

What you will practice

  1. Abstract shapes with dispatchintermediate
  2. Prove the virtual destructorintermediate
  3. override catches the bugintermediate

Need the concept first? Re-read the lesson.