C++ : Why base class destructor (virtual) is called when a derived class object is deleted?

Channel:
Subscribers:
76,400
Published on ● Video Link: https://www.youtube.com/watch?v=y1P198O2TOc



Duration: 1:07
0 views
0


C++ : Why base class destructor (virtual) is called when a derived class object is deleted?
To Access My Live Chat Page,
On Google, Search for "hows tech developer connect"

I promised to share a hidden feature with you, and here it is.
This is a YouTube's feature which works on Desktop.
First, Ensure that the video is playing before proceeding.
Then, type the letters 'awesome' on the keyboard.
Your YouTube progress bar will transform into a flashing rainbow.

A brief presentation of myself,
Hello, I am Delphi.
I am here to provide you with assistance in answering your questions.
C++ : Why base class destructor (virtual) is called when a derived class object is deleted?
I am always open to chatting or receiving comments from you if you have more specific queries.
We welcome your thoughts and feedback, so please comment below with your answer or insights to the answer.
Your answer will be acknowledged and appreciated, and I will 'heart' it as a sign of gratitude.
(virtual) deleted? class is C++ object : is destructor class when derived called a base Why