Question:What are constructor and destructor?

 

Answer Constructor:- A constructor is defined as a block of code that automatically executes at the time of object instantiation.
Destructor:- We can use destructors to modify the object destruction process. Destructors are created like any other method but must be titled_destruct(). 


Deprecated: html_entity_decode(): Passing null to parameter #1 ($string) of type string is deprecated in D:\webserver\www\vcampusbd_com_https\answers\column_answer_two.php on line 128
+ Report
Total Preview: 484
What are constructor and destructor?

Copyright © 2024. Powered by Intellect Software Ltd