What is the syntax of destructor?

The syntax for destructor is same as that for the constructor, the class name is used for the name of destructor, with a tilde ~ sign as prefix to it . // statement } }; Destructors will never have any arguments. Below we have a simple class A with a constructor and destructor.

Sizin İçin Seçtik  Gayrı hangi yörenin?

Leave a Reply

Your email address will not be published. Required fields are marked *