What is advantage of constructor?

One of the benefits of using a constructor over a method is that you can be assured the constructor was called and the work within the constructor was performed . The language specifies that to construct an object a constructor must be called.

Sizin İçin Seçtik  Is Verizon 5G better than WIFI?

Leave a Reply

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