Virtual Destructor in C++
Автор: Code With Bhupendra
Загружено: 2019-05-07
Просмотров: 317
Описание:
Virtual Destructor in C++
Virtual Destructor is required in C++, when Parent class pointer pointing to child object created using new keyword and then dynamic memory deallocation is requested using delete keyword with parent pointer.
Without virtual, C++ only destroys parent object, but when virtual is applied it will correctly calls destructor of child as well as parent.
Hello, I'm Bhupendra Khilrani.
You can Subscribe to my channel:
/ codewithbhupendra
Thanks.
#c++programming #virtualdestructor
#codewithbhupendra
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: