What about Virtual Destructor?
Answer / guest
Virtual Destructor can be called at runtime and respected
destructor function will be called depending upon the type
of object calling to.
| Is This Answer Correct ? | 2 Yes | 0 No |
Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?
What is constructor and destructor in c++?
Why are pointers not used in c++?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ? Why is it difficult to store linked list in an array?how can you find the nodes with repetetive data in a linked list?
What is copy constructor? Can we make copy constructor private in c++?
Please explain class & object in c++?
What is the difference between operator new and the new operator?
Differentiate between declaration and definition in C++?
What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };
What are punctuators in c++?
When a function is made inline. Write the situation where inline functions may not work.
Implement a 2 dimensional array by one dimentional array