Question:What are constructor and destructor?

 

Answer Constructor: It is automatic object creation process. It can call class methods and can accept paramiters.
Destructor: It is automatic object destruction process. We can use destructors to modify the object destruction process. 


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: 638
What are constructor and destructor?

Copyright © 2024. Powered by Intellect Software Ltd