HOW TO DESTROY CONSTRUCTOR IN C

Babe Zaharias

Total Post:19

Points:133
Posted by  Babe Zaharias
 1038  View(s)
Ratings:
Rate this:
Hi Developers,

How to destroy constructor explicit in C++? Please provide line of code.

Thanks in advance.



  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: how to destroy constructor in c

    Try as following


    class myclass{
    public:
    myclass( );
    };
    myclass:: ~myclass( )
    {
    cout<<"Distructing.......\n";
    }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!