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 |
What is class and structure in c++?
What data encapsulation is in c++?
Can I uninstall microsoft c++ redistributable?
Explain RAII (Resource Acquisition Is Initialization).
Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.
Adobe Interview & Adobe Placement Paper
What do you mean by storage classes?
What is the output of: String a1 = "Hello"; String a2 = "world!"; String* s1 = &a2; String& s2 = a1; s1 = &a1; s2 = a2; std::cout << *s1 << " " << s2 << std::endl;
Is it possible to get the source code back from binary file?
What does std :: flush do?
What is c++ vb?
Can we use resume in error handling i.e. in the catch block