CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

Calling Virtual Functions from Class Destructors

C++ – Calling Virtual functions from class Destructors

C++ allows virtual functions to resolve function calls at run-time. This is called late-binding. Like virtual functions, C++ allows virtual destructors to delete the objects properly in an inheritance hierarchy. C++ allows calling virtual functions from class destructors. But what will happen when it calls these virtual functions from class destructors? Let’s take an example, […]

Scroll to top