query: Can we perform deleting object through a pointer to one of its base classes?
positive_passages.docid: 21677
positive_passages.text: Does delete work with pointers to base class?
negative_passages.docid: 79888
negative_passages.text: Why should I declare a virtual destructor for an abstract class in C++?
negative_passages.docid: 64396
negative_passages.text: throwing exceptions out of a destructor
negative_passages.docid: 61945
negative_passages.text: Are there benefits of passing by pointer over passing by reference in C++?
negative_passages.docid: 151826
negative_passages.text: Why should I not try to use "this" value after "delete this"?
negative_passages.docid: 38838
negative_passages.text: Polymorphism & Pointers to arrays
negative_passages.docid: 127772
negative_passages.text: this pointer to base class constructor?
negative_passages.docid: 14116
negative_passages.text: Pure virtual destructor in C++
negative_passages.docid: 76488
negative_passages.text: What is a reference-to-pointer?
negative_passages.docid: 103263
negative_passages.text: How can I determine if a C++ object has been deallocated?
negative_passages.docid: 93401
negative_passages.text: Is it possible to delete a non-new object?
negative_passages.docid: 34560
negative_passages.text: Calling delete on variable allocated on the stack
negative_passages.docid: 107907
negative_passages.text: Why destructor is not called on exception?
negative_passages.docid: 114816
negative_passages.text: Is null reference possible?
negative_passages.docid: 155594
negative_passages.text: C++ deleting a pointer to a pointer
negative_passages.docid: 109149
negative_passages.text: Destruction order of static objects in C++
negative_passages.docid: 147050
negative_passages.text: How to avoid memory leaks when using a vector of pointers to dynamically allocated objects in C++?