logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • what is the use of virtual destructor in c++?


  • Correct Answer
  • A destructor is automatically called when the object is destroyed A virtual destructor in C++ is used primarily to prevent resource leaks by performing a clean-up of the object 


  • Technology problems


    Search Results


    • 1. What are the features of C++ different from C?
    • Discuss
    • 2. What are the basic concepts of object oriented programming?
    • Discuss
    • 3. What is C++
    • Discuss
    • 4. Define void pointer using C++.?
    • Discuss
    • 5. What is the data structures used to perform recursion?
    • Discuss
    • 6. What do you mean by reference variable in c++?
    • Discuss
    • 7. What are storage qualifiers in C++ ?
    • Discuss
    • 8. What is copy constructor?
    • Discuss
    • 9. What is default constructor?
    • Discuss
    • 10. What is dynamic binding?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment