explicit call to destructor

sowjanya333

sowjanya333

@sowjanya333-aJ8Igc Oct 26, 2024
How can we expicitly call the destructor to destroy an object in the middle of the program in C++?

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • debu

    debu

    @debu-62iszV Sep 11, 2009

    @sowjanya333: Use the "delete" keyword to explicitly call the destructor.

    Regards,

    Debu 😀