What is virtual destructors? Why they are used?
Virtual destructors in C++ are used to avoid memory leaks especially when your class contains unmanaged code, i.e., contains pointers or object handles to files, databases or other external objects. A destructor can be virtual. ... Now, suppose you create an instance of the Derived class using a Base class pointer.
| Is This Answer Correct ? | 0 Yes | 0 No |
Mention the purpose of istream class?
Is c++ an integer?
Define what is constructor?
Can we get the value of ios format flags?
Write the program form Armstrong no in c++?
List the special characteristics of constructor.
What is the difference between an external iterator and an internal iterator? Describe an advantage of an external iterator?
which of the following is not an secondary constant a) array b) real c) union
What is double in c++?
What is the difference between while and do while loop?
what is the order of initialization for data?
10 Answers Amazon, TCS, Wipro,
Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .